-
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
function getLatestVersion() {
|
||||
|
||||
console.log("[INFO] [PLUGIN VERSION] Getting list of versions of Bludit.");
|
||||
|
||||
$.ajax({
|
||||
url: "https://version.bludit.com",
|
||||
method: "GET",
|
||||
dataType: 'json',
|
||||
success: function(json) {
|
||||
console.log("[INFO] [PLUGIN VERSION] Request completed.");
|
||||
|
||||
// Constant BLUDIT_BUILD is defined on variables.js
|
||||
if (json.stable.build > BLUDIT_BUILD) {
|
||||
$(".current-version").hide();
|
||||
$(".new-version").show();
|
||||
}
|
||||
},
|
||||
error: function(json) {
|
||||
console.log("[WARN] [PLUGIN VERSION] There is some issue to get the version status.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
getLatestVersion();
|
||||
Reference in New Issue
Block a user