add versioning

This commit is contained in:
matan
2023-12-22 12:34:16 +02:00
parent 407513b3ca
commit 495aad1aa6
5 changed files with 164 additions and 139 deletions
+133
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7
View File
@@ -1,5 +1,9 @@
import { app } from "../../scripts/app.js";
import {LearnModal} from './learn-menu.js'
import {latestVersion} from "./data.js";
const localVersion = 0;
var docStyle = document.createElement('style');
@@ -35,6 +39,9 @@ const ext = {
})
}
learnBtn.addEventListener("click", ()=>{
if(latestVersion>localVersion){
alert("You are using an old version of the plugin, update it to get the latest features")
}
LearnModal.get().show();
})
menuLoadDefault.after(learnBtn);