X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=src%2Fjs%2Fnebulas-account.js;h=bded3e92575f9076abeda357df6b5e640cc52994;hp=45d8724a510137769c4cf2e995685798ab42c108;hb=8017442c509ef1fa545367e727608bdc91bc1504;hpb=961df0a5a52e81bdf9c33f850f88f957ec80712b diff --git a/src/js/nebulas-account.js b/src/js/nebulas-account.js index 45d8724..bded3e9 100644 --- a/src/js/nebulas-account.js +++ b/src/js/nebulas-account.js @@ -21709,7 +21709,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) { @@ -27194,13 +27194,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; @@ -27209,7 +27209,7 @@ Script.prototype.runInContext = function (context) { wExecScript.call(win, 'null'); wEval = win.eval; } - + forEach(Object_keys(context), function (key) { win[key] = context[key]; }); @@ -27218,11 +27218,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` @@ -27237,9 +27237,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; };