Skip to content

Commit b2056a9

Browse files
committed
delete popup.js
1 parent 34e84d8 commit b2056a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

popup.html

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ <h3>Patreon</h3>
8181

8282
<script src="content_script.js"></script>
8383
<script src="l10n.js"></script>
84-
<script src="popup.js"></script>
8584
<script type="module" src="popup.mjs"></script>
8685

8786
</html>

popup.js

-5
This file was deleted.

popup.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,9 @@ function previewfile(file) {
104104
button_elem.addEventListener("click",function() {
105105
browser.runtime.sendMessage({ type: "send-image", src: preview.getElementsByTagName("img")[0].src });
106106
});
107+
108+
for (const elem of document.querySelectorAll("iframe")) {
109+
setInterval(function() {
110+
elem.style.height = elem.contentWindow.document.body.scrollHeight + "px";
111+
}, 1);
112+
}

0 commit comments

Comments
 (0)