From 2b1fc1f3542035b5bc9c444603332ba74105248b Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Wed, 4 Apr 2018 16:59:48 +0300 Subject: [PATCH] Local debugging without connect() --- code/html/custom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/html/custom.js b/code/html/custom.js index 9a4150e0..b77f1655 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -1358,6 +1358,8 @@ $(function() { $(document).on("change", "input", hasChanged); $(document).on("change", "select", hasChanged); + // don't autoconnect when opening from filesystem + if (window.location.protocol === "file:") { return; } connect(); });