Start: Removed remaining unauthorized internet access at startup

This commit is contained in:
Yorik van Havre
2018-03-26 10:06:26 -03:00
parent f5bd719a6d
commit e1e06e7320

View File

@@ -56,8 +56,12 @@ function checkVersion(data) {
}
function load() {
// load latest news
ddiv = document.getElementById("news");
if (allowDownloads == 0) {
ddiv.innerHTML = '<a href="EnableDownload.py" onClick="enableDownloads()">text70</a> text71';
return;
}
// load latest news
ddiv.innerHTML = "Connecting...";
var tobj=new JSONscriptRequest('https://api.github.com/repos/FreeCAD/FreeCAD/commits?callback=showTweets');
tobj.buildScriptTag(); // Build the script tag