aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-04-19 02:49:06 +0800
committerkumavis <aaron@kumavis.me>2016-04-19 02:49:06 +0800
commite949e6b11869e584e4f5e6684bd7c4d04b86ef0b (patch)
treebefb8e3f22858bbd8ad4f2ed460b93101cb75b23
parent83b8741bbb335ad1629b72180616835dbb3f5433 (diff)
downloadtangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.gz
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.bz2
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.lz
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.xz
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.zst
tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.zip
contentscript - append inpage as first child
-rw-r--r--app/scripts/contentscript.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 105f24988..a256a3f5b 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -7,7 +7,8 @@ var scriptTag = document.createElement('script')
scriptTag.src = chrome.extension.getURL('scripts/inpage.js')
scriptTag.onload = function() { this.parentNode.removeChild(this) }
var container = document.head || document.documentElement
-container.appendChild(scriptTag)
+// append as first child
+container.insertBefore(scriptTag, container.children[0])
// setup communication to page and plugin
var pageStream = new LocalMessageDuplexStream({