Working version
This commit is contained in:
10
popup/updateNotice.js
Normal file
10
popup/updateNotice.js
Normal file
@@ -0,0 +1,10 @@
|
||||
document.addEventListener('DOMContentLoaded', async function() {
|
||||
cManifest=await fetch("/manifest.json").then(r=>r.json());
|
||||
rManifest=await fetch("https://raw.githubusercontent.com/FoxRefire/wvg/next/manifest.json").then(r=>r.json());
|
||||
if(cManifest.version < rManifest.version){
|
||||
let notice = document.getElementById("updateNotice");
|
||||
notice.style.display='block';
|
||||
notice.innerHTML = notice.innerHTML.replace("=VER=", rManifest.version);
|
||||
notice.innerHTML = notice.innerHTML.replace("=HASH=", rManifest.version_name);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user