This commit is contained in:
JannisX11 2019-09-06 01:47:49 +02:00
parent fd62f66ef5
commit 983b50a215
2 changed files with 9 additions and 8 deletions

View File

@ -535,6 +535,15 @@ const Blockbench = {
delete this.drag_handlers[id]
},
}
(function() {
var last_welcome = localStorage.getItem('welcomed_version');
if (!last_welcome || last_welcome.replace(/.\d+$/, '') != appVersion.replace(/.\d+$/, '')) {
Blockbench.addFlag('after_update');
}
localStorage.setItem('welcomed_version', appVersion);
})();
if (isApp) {
Blockbench.platform = process.platform;
switch (Blockbench.platform) {

View File

@ -52,14 +52,6 @@ const mouse_pos = {x:0,y:0}
const sort_collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
$.ajaxSetup({ cache: false });
(function() {
var last_welcome = localStorage.getItem('welcomed_version');
if (!last_welcome || last_welcome.replace(/.\d+$/, '') != appVersion.replace(/.\d+$/, '')) {
Blockbench.addFlag('after_update');
}
localStorage.setItem('welcomed_version', appVersion);
})();
function initializeApp() {
//Browser Detection