From b304d86fc43464b3b25b7f74c5a3681d80e9b85a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 6 Nov 2016 09:50:02 +0200 Subject: [PATCH] chore(client) route: rm " " --- lib/client.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/client.js b/lib/client.js index ed4f06d1..7232c2bd 100644 --- a/lib/client.js +++ b/lib/client.js @@ -209,15 +209,15 @@ var Util, DOM, CloudFunc, join; this.route = function(path) { var module, file, current, msg, - query = path.split('/'); + query = path.split('/'); if (path) { - module = query[0]; - module = module.slice(1); - module = getStrBigFirst(module); + module = query[0]; + module = module.slice(1); + module = getStrBigFirst(module); - file = query[1]; - current = DOM.getCurrentByName(file); + file = query[1]; + current = DOM.getCurrentByName(file); if (file && !current) { msg = CloudFunc.formatMsg('set current file', file, 'error');