Updated content.js to use runtime.getURL

This commit is contained in:
Manish
2020-03-11 18:02:49 +05:30
parent 4a54f93ec9
commit 7efba048ba

View File

@@ -34,7 +34,7 @@
*/
function insertImage(imageURL) {
const insertImage = document.createElement("iframe");
insertImage.setAttribute("src", browser.extension.getURL(`/viewer.html?blobURL=${imageURL}`));
insertImage.setAttribute("src", browser.runtime.getURL(`/viewer.html?blobURL=${imageURL}`));
insertImage.setAttribute("style", "width: 100vw; height: 100vh;");
document.body.appendChild(insertImage);
}