diff options
author | kumavis <aaron@kumavis.me> | 2016-04-19 02:49:06 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2016-04-19 02:49:06 +0800 |
commit | e949e6b11869e584e4f5e6684bd7c4d04b86ef0b (patch) | |
tree | befb8e3f22858bbd8ad4f2ed460b93101cb75b23 /app | |
parent | 83b8741bbb335ad1629b72180616835dbb3f5433 (diff) | |
download | tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.gz tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.tar.zst tangerine-wallet-browser-e949e6b11869e584e4f5e6684bd7c4d04b86ef0b.zip |
contentscript - append inpage as first child
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/contentscript.js | 3 |
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({ |