From 7efba048ba93e5386422f1dcf7e97e00cd931af3 Mon Sep 17 00:00:00 2001 From: Manish Date: Wed, 11 Mar 2020 18:02:49 +0530 Subject: [PATCH] Updated content.js to use runtime.getURL --- imagify/content_scripts/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagify/content_scripts/content.js b/imagify/content_scripts/content.js index 1c837602..5dde2373 100644 --- a/imagify/content_scripts/content.js +++ b/imagify/content_scripts/content.js @@ -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); }