diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b19c561..b972a84 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,4 @@ +v1.0.206: Fixed update check to comply with Github deprecations: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/ v1.0.205: Updated version of avrgirl backend for Firmware flashing, fixes to CI v1.0.204: Soft-Limits support in Keyboard Continuous Jogging v1.0.203: Fixed bug where update popup appears during continuous Jog, now it waits diff --git a/app/js/updates.js b/app/js/updates.js index 06b3904..03bbf49 100644 --- a/app/js/updates.js +++ b/app/js/updates.js @@ -3,12 +3,19 @@ $(document).ready(function() { checkUpdate() }); +var githubPAtoken = `3b27c3e69c7731e237687c46693a33df6ee4df29`; + function checkUpdate() { if (!isMac && webgl) { setTimeout(function() { // console.log('checking for update') printLog("[ update ] Checking for Updates") - $.getJSON("https://api.github.com/repos/OpenBuilds/OpenBuilds-CONTROL/releases/latest?client_id=fbbb80debc1197222169&client_secret=7dc6e463422e933448f9a3a4150c8d2bbdd0f87c").done(function(release) { + $.getJSON("https://api.github.com/repos/OpenBuilds/OpenBuilds-CONTROL/releases/latest", { + crossDomain: true, + headers: { + 'Authorization': githubPAtoken + } + }).done(function(release) { var availVersion = release.name.substr(1) var currentVersion = laststatus.driver.version // console.log(versionCompare(availVersion, currentVersion), availVersion, currentVersion); diff --git a/package.json b/package.json index 2f27c78..b00dd04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "OpenBuildsCONTROL", - "version": "1.0.205", + "version": "1.0.206", "license": "AGPL-3.0", "description": "Machine Interface Driver for OpenBuilds", "author": "github.com/openbuilds ",