From efd68b6453a1369f886f9ad7d9a102310ed30354 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 6 Nov 2016 10:28:03 +0200 Subject: [PATCH] fix(client) baseInit: do not set history when hash preset --- lib/client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 7232c2bd..602605c1 100644 --- a/lib/client.js +++ b/lib/client.js @@ -302,7 +302,12 @@ var Util, DOM, CloudFunc, join; /* выделяем строку с первым файлом */ if (files) - DOM.setCurrentFile(files[0]); + DOM.setCurrentFile(files[0], { + // when hash is present + // it should be handled with this.route + // overwre otherwise + history: !location.hash + }); dirPath = DOM.getCurrentDirPath(), Listeners = CloudCmd.Listeners;