Fix debug app with no hash

pull/1/head
yflory 4 years ago
parent e3eef3abaf
commit 92df689352

@ -46,6 +46,7 @@ define([], function () {
// shim between chainpad and netflux // shim between chainpad and netflux
var msgIn = function (peer, msg) { var msgIn = function (peer, msg) {
try { try {
if (/^\[/.test(msg)) { return msg; } // Already decrypted
var isHk = peer.length !== 32; var isHk = peer.length !== 32;
var key = isNewHash ? validateKey : false; var key = isNewHash ? validateKey : false;
var decryptedMsg = Crypto.decrypt(msg, key, isHk); var decryptedMsg = Crypto.decrypt(msg, key, isHk);

@ -28,6 +28,8 @@ define([
// Loaded in load #2 // Loaded in load #2
nThen(function (waitFor) { nThen(function (waitFor) {
$(waitFor()); $(waitFor());
}).nThen(function (waitFor) {
SFCommonO.initIframe(waitFor);
}).nThen(function (waitFor) { }).nThen(function (waitFor) {
var req = { var req = {
cfg: requireConfig, cfg: requireConfig,

Loading…
Cancel
Save