A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/patches/colors+1.4.0.patch

14 lines
652 B

diff --git a/node_modules/colors/lib/extendStringPrototype.js b/node_modules/colors/lib/extendStringPrototype.js
index 46fd386..c7d0fc5 100644
--- a/node_modules/colors/lib/extendStringPrototype.js
+++ b/node_modules/colors/lib/extendStringPrototype.js
@@ -5,7 +5,8 @@ module['exports'] = function() {
// Extends prototype of native string object to allow for "foo".red syntax
//
var addProperty = function(color, func) {
- String.prototype.__defineGetter__(color, func);
+ // remove prototype mutation so this plays well with LavaMoat
+ // String.prototype.__defineGetter__(color, func);
};
addProperty('strip', function() {