Skip to content

Commit

Permalink
Updated content.js to use runtime.getURL
Browse files Browse the repository at this point in the history
  • Loading branch information
ManishAradwad committed Mar 11, 2020
1 parent 4a54f93 commit 7efba04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagify/content_scripts/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7efba04

Please sign in to comment.