From bb3a0162ad4b7c027b9c9c7c7858366a7177645d Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Wed, 13 Dec 2017 04:19:10 +0300 Subject: [PATCH] small windows speed-up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit portfolio is too "expensive" method, "calls 10 times to portfolio even before entering a passphrase…that's a waste of resources" (c) pbca26 so we need to change it on something else, for example, enable without any coin. and as it's first api call it return as userpass. --- gui/js/ipc-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/js/ipc-actions.js b/gui/js/ipc-actions.js index 0d4fa5a..832bbc0 100644 --- a/gui/js/ipc-actions.js +++ b/gui/js/ipc-actions.js @@ -491,7 +491,7 @@ CheckDefaultLogin = function(sig) { } var userpass = '1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f'; - var ajax_data = {"userpass":userpass,"method":"portfolio"}; + var ajax_data = {"userpass":userpass,"method":"enable","coin":""}; //console.log(ajax_data) var url = "http://127.0.0.1:7783";