diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-04-19 02:50:51 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-04-19 02:50:51 +0800 |
commit | fdc74b7e8741c0023f59d8e94735f0357bd7f9af (patch) | |
tree | befb8e3f22858bbd8ad4f2ed460b93101cb75b23 | |
parent | 83b8741bbb335ad1629b72180616835dbb3f5433 (diff) | |
parent | e949e6b11869e584e4f5e6684bd7c4d04b86ef0b (diff) | |
download | tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar.gz tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar.bz2 tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar.lz tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar.xz tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.tar.zst tangerine-wallet-browser-fdc74b7e8741c0023f59d8e94735f0357bd7f9af.zip |
Merge pull request #116 from MetaMask/i30
contentscript - append inpage as first child
-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({ |