From 92df689352508442280a552af579855086af0006 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Dec 2020 16:21:45 +0100 Subject: [PATCH] Fix debug app with no hash --- www/common/sframe-chainpad-netflux-outer.js | 1 + www/debug/main.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/www/common/sframe-chainpad-netflux-outer.js b/www/common/sframe-chainpad-netflux-outer.js index c19299da2..f47dc812a 100644 --- a/www/common/sframe-chainpad-netflux-outer.js +++ b/www/common/sframe-chainpad-netflux-outer.js @@ -46,6 +46,7 @@ define([], function () { // shim between chainpad and netflux var msgIn = function (peer, msg) { try { + if (/^\[/.test(msg)) { return msg; } // Already decrypted var isHk = peer.length !== 32; var key = isNewHash ? validateKey : false; var decryptedMsg = Crypto.decrypt(msg, key, isHk); diff --git a/www/debug/main.js b/www/debug/main.js index b901beec0..af3d78a57 100644 --- a/www/debug/main.js +++ b/www/debug/main.js @@ -28,6 +28,8 @@ define([ // Loaded in load #2 nThen(function (waitFor) { $(waitFor()); + }).nThen(function (waitFor) { + SFCommonO.initIframe(waitFor); }).nThen(function (waitFor) { var req = { cfg: requireConfig,