add versioning
This commit is contained in:
File diff suppressed because one or more lines are too long
+2
-133
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user