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

Do not use browser.extension.getURL

This commit is contained in:
kkapsner 2021-11-01 13:18:38 +01:00
parent 6f5cfc1080
commit 7f154c6cc6
6 changed files with 20 additions and 14 deletions

View file

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