aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/templates.js6
-rw-r--r--ext/fg/js/popup.js9
-rw-r--r--ext/manifest.json2
3 files changed, 9 insertions, 8 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js
index d77f09f6..6c424225 100644
--- a/ext/bg/js/templates.js
+++ b/ext/bg/js/templates.js
@@ -1,11 +1,7 @@
(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['footer.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
- var helper;
-
- return " <script src=\""
- + container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"root","hash":{},"data":data}) : helper)))
- + "/js/popup.js\"></script>\n </body>\n</html>\n";
+ return " </body>\n</html>\n";
},"useData":true});
templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper;
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 4c5a01d8..92ade784 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -63,9 +63,14 @@ class Popup {
}
setContent(content) {
- if (this.popup !== null) {
- this.popup.setAttribute('srcdoc', content);
+ if (this.popup === null) {
+ return;
}
+
+ const doc = this.popup.contentDocument;
+ doc.open();
+ doc.write(content);
+ doc.close();
}
inject() {
diff --git a/ext/manifest.json b/ext/manifest.json
index 4e61e5c1..b454fd97 100644
--- a/ext/manifest.json
+++ b/ext/manifest.json
@@ -20,7 +20,7 @@
"background": {"page": "bg/background.html"},
"options_page": "bg/options.html",
"permissions": ["storage"],
- "web_accessible_resources": ["fg/css/popup.css", "fg/js/popup.js"],
+ "web_accessible_resources": ["fg/css/popup.css"],
"content_scripts": [{
"matches": ["*://*/*"],