diff --git a/customize.dist/login.js b/customize.dist/login.js index deb847f2c..31567afcb 100644 --- a/customize.dist/login.js +++ b/customize.dist/login.js @@ -90,15 +90,6 @@ define([ return; } } - if (window.location.hash === '#debug') { - let hash = LocalStore.getBlockHash(); - let parsed; - if (hash) { parsed = Block.parseBlockHash(hash); } - alert(JSON.stringify({ - blockId: parsed.href || '?' - }, 0, 2)); - return; - } window.location.href = '/drive/'; }; diff --git a/www/common/common-login.js b/www/common/common-login.js index 66ce9c034..46d760b69 100644 --- a/www/common/common-login.js +++ b/www/common/common-login.js @@ -316,6 +316,16 @@ define([ res.opt = allocateBytes(bytes); res.blockHash = res.opt.blockHash; blockKeys = res.opt.blockKeys; + if (window.location.hash === '#debug') { + let hash = LocalStore.getBlockHash(); + let parsed; + if (hash) { parsed = Block.parseBlockHash(hash); } + alert(JSON.stringify({ + blockId: Util.encodeBase64(blockKeys.sign.publicKey) + }, 0, 2)); + waitFor.abort(); + return; + } if (ssoAuth && ssoAuth.name) { uname = res.uname = ssoAuth.name; } })); }).nThen(function (waitFor) {