mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Fixes RYZEN-CONTROLLER-40 - Detect when checkForNewRelease is failing.
This commit is contained in:
parent
a7b0362f0f
commit
22be46426c
@ -497,6 +497,7 @@ function checkForNewRelease() {
|
||||
var request = new XMLHttpRequest();
|
||||
const version = require('./package.json').version;
|
||||
|
||||
try {
|
||||
request.open('GET', 'https://gitlab.com/api/v4/projects/11046417/releases', true);
|
||||
|
||||
request.onload = function() {
|
||||
@ -509,6 +510,9 @@ function checkForNewRelease() {
|
||||
};
|
||||
|
||||
request.send();
|
||||
} catch (error) {
|
||||
console.log('Unable to check if new release is available.', error);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user