mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-21 18:02:17 +00:00
Fix trailing whitespace
This commit is contained in:
@@ -18123,7 +18123,7 @@ module.exports = function privateDecrypt(private_key, enc, reverse) {
|
||||
} else {
|
||||
padding = 4;
|
||||
}
|
||||
|
||||
|
||||
var key = parseKeys(private_key);
|
||||
var k = key.modulus.byteLength();
|
||||
if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) {
|
||||
@@ -22690,13 +22690,13 @@ Script.prototype.runInContext = function (context) {
|
||||
if (!(context instanceof Context)) {
|
||||
throw new TypeError("needs a 'context' argument.");
|
||||
}
|
||||
|
||||
|
||||
var iframe = document.createElement('iframe');
|
||||
if (!iframe.style) iframe.style = {};
|
||||
iframe.style.display = 'none';
|
||||
|
||||
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
|
||||
var win = iframe.contentWindow;
|
||||
var wEval = win.eval, wExecScript = win.execScript;
|
||||
|
||||
@@ -22705,7 +22705,7 @@ Script.prototype.runInContext = function (context) {
|
||||
wExecScript.call(win, 'null');
|
||||
wEval = win.eval;
|
||||
}
|
||||
|
||||
|
||||
forEach(Object_keys(context), function (key) {
|
||||
win[key] = context[key];
|
||||
});
|
||||
@@ -22714,11 +22714,11 @@ Script.prototype.runInContext = function (context) {
|
||||
win[key] = context[key];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var winKeys = Object_keys(win);
|
||||
|
||||
var res = wEval.call(win, this.code);
|
||||
|
||||
|
||||
forEach(Object_keys(win), function (key) {
|
||||
// Avoid copying circular objects like `top` and `window` by only
|
||||
// updating existing context properties or new properties in the `win`
|
||||
@@ -22733,9 +22733,9 @@ Script.prototype.runInContext = function (context) {
|
||||
defineProp(context, key, win[key]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
document.body.removeChild(iframe);
|
||||
|
||||
|
||||
return res;
|
||||
};
|
||||
|
||||
@@ -27914,4 +27914,4 @@ Sha512.prototype._hash = function () {
|
||||
module.exports = Sha512
|
||||
|
||||
},{"./hash":195,"inherits":189,"safe-buffer":193}]},{},[150])(150)
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user