aboutsummaryrefslogtreecommitdiffstats
path: root/page.js
diff options
context:
space:
mode:
authorTeddy Wing2019-06-01 22:24:40 +0200
committerTeddy Wing2019-06-01 22:24:40 +0200
commit013569866de4795ec0829f8434450ca99e05e542 (patch)
tree0cc61ae65c2e4f14201450ad71860cc48a597b5f /page.js
parentd51d4368158499474827244206a2b69883f91519 (diff)
downloadchrome-copy-urls-from-all-tabs-firefox-webextension.tar.bz2
page.js: Change `innerHTML` to `textContent`firefox-webextension
Fix this warning received during validation while signing the extension with Mozilla: Unsafe assignment to innerHTML Warning: Due to both security and performance concerns, this may not be set using dynamic values which have not been adequately sanitized. This can lead to security issues or fairly serious performance degradation.
Diffstat (limited to 'page.js')
-rw-r--r--page.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/page.js b/page.js
index fa2f0b0..f616b09 100644
--- a/page.js
+++ b/page.js
@@ -1,3 +1,3 @@
(function() {
- document.getElementById('header').innerHTML = generate_file_string();
+ document.getElementById('header').textContent = generate_file_string();
})(); \ No newline at end of file