diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-03-03 02:32:53 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-03-03 02:32:53 +0800 |
commit | 81fa0742f7e1702eae866c1915319b0de3a2430d (patch) | |
tree | ecd4ec83d8eec13d5ff17536a989fd8e28bfdda1 /gulpfile.js | |
parent | f22dfd4ae8031e3f7b4972a1cc8f119b99007717 (diff) | |
download | tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar.gz tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar.bz2 tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar.lz tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar.xz tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.tar.zst tangerine-wallet-browser-81fa0742f7e1702eae866c1915319b0de3a2430d.zip |
Fix inpage provider name regression
Fixes #3372 by not minifying the name of our inpage provider, which some
people were using to identify MetaMask (not our preferred, supported
method of web3.currentProvider.isMetaMask).
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 3ade82f87..adfb148a9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -407,7 +407,9 @@ function bundleTask(opts) { // loads map from browserify file .pipe(gulpif(debug, sourcemaps.init({ loadMaps: true }))) // Minification - .pipe(gulpif(opts.isBuild, uglify())) + .pipe(gulpif(opts.isBuild, uglify({ + mangle: { reserved: [ 'MetamaskInpageProvider' ] }, + }))) // writes .map file .pipe(gulpif(debug, sourcemaps.write('./'))) // write completed bundles |