diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-08-21 06:39:03 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-08-21 06:45:50 +0800 |
commit | 6ce119d1fbf458fa93c63198da7e5bff3045d955 (patch) | |
tree | fb18f9bbad5317ec68a6e4388a50c24f5bd027f8 /app/scripts/contentscript.js | |
parent | 887cad973f25f43d2d4502ff31657f156a44b188 (diff) | |
download | tangerine-wallet-browser-6ce119d1fbf458fa93c63198da7e5bff3045d955.tar.gz tangerine-wallet-browser-6ce119d1fbf458fa93c63198da7e5bff3045d955.tar.zst tangerine-wallet-browser-6ce119d1fbf458fa93c63198da7e5bff3045d955.zip |
Move inpage-provider and port-stream outside
With the creation of the [metamask-extension-provider](https://github.com/MetaMask/metamask-extension-provider) we have our first non-core module that is dependent on the inpage-provider and port-stream.
To reduce the size of its dependencies, I have moved the
[metamask-inpage-provider](https://github.com/MetaMask/metamask-inpage-provider) into its own module, as well as [extension-port-stream](https://github.com/MetaMask/extension-port-stream).
This allows them to be more easily depended & iterated on by external
projects.
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r-- | app/scripts/contentscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index e0a2b0061..6eee1987a 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -5,7 +5,7 @@ const LocalMessageDuplexStream = require('post-message-stream') const PongStream = require('ping-pong-stream/pong') const ObjectMultiplex = require('obj-multiplex') const extension = require('extensionizer') -const PortStream = require('./lib/port-stream.js') +const PortStream = require('extension-port-stream') const inpageContent = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'chrome', 'inpage.js')).toString() const inpageSuffix = '//# sourceURL=' + extension.extension.getURL('inpage.js') + '\n' |