Skip to content

Commit

Permalink
Merge pull request mdn#449 from ManishAradwad/issue#448
Browse files Browse the repository at this point in the history
Updated content.js to use runtime.getURL
  • Loading branch information
rebloor authored Mar 12, 2020
2 parents 4a54f93 + 7efba04 commit b89c53a
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 b89c53a

Please sign in to comment.