1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added version display to options page.

As suggested in #221.
This commit is contained in:
kkapsner 2018-08-18 21:50:04 +02:00
parent bf868eb6ae
commit dfc613db04
3 changed files with 16 additions and 1 deletions

View file

@ -199,4 +199,13 @@
}
}
});
const version = document.createElement("div");
version.className = "version";
fetch(browser.extension.getURL("manifest.json")).then(function(response){
return response.json();
}).then(function(manifest){
version.textContent = "Version " + manifest.version;
});
document.body.appendChild(version);
}());