Merge pull request #2052 from cammarin/runtime-geturl

Replace deprecated method `browser.extension.getURL()`
This commit is contained in:
luke crouch
2021-07-26 09:09:17 -05:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function addRemoveSiteIsolation() {
}
async function getExtensionInfo() {
const manifestPath = browser.extension.getURL("manifest.json");
const manifestPath = browser.runtime.getURL("manifest.json");
const response = await fetch(manifestPath);
const extensionInfo = await response.json();
return extensionInfo;