diff --git a/lib/cloudfunc.js b/lib/cloudfunc.js index a8dee8d8..a9e8dace 100644 --- a/lib/cloudfunc.js +++ b/lib/cloudfunc.js @@ -5,10 +5,10 @@ var CloudFunc={ /* Путь с которым мы сейчас работаем */ - Path :'', + Path : '', /* КОНСТАНТЫ (общие для клиента и сервера)*/ /* название программы */ - NAME :'Cloud Commander', + NAME : 'Cloud Commander', /* если в ссылке будет эта строка - * в браузере js отключен */ @@ -31,7 +31,7 @@ var CloudFunc={ */ CloudFunc.removeLastSlash = function(pPath){ if(typeof pPath==='string') - return (pPath.lastIndexOf('/')===pPath.length-1)? + return (pPath.lastIndexOf('/') === pPath.length-1) ? pPath.substr(pPath, pPath.length-1):pPath; else return pPath; }; @@ -39,7 +39,7 @@ CloudFunc.removeLastSlash = function(pPath){ /* Функция возвращает заголовок веб страницы */ CloudFunc.setTitle = function(){ - return CloudFunc.Path===''?CloudFunc.NAME: + return CloudFunc.Path==='' ? CloudFunc.NAME: CloudFunc.Path + ' - ' + CloudFunc.NAME; diff --git a/server.js b/server.js index 2b2c1935..fd9675b4 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,9 @@ var CloudServer = { * exist */ Config : { - cache : {allowed : true}, + cache : { + allowed : true + }, minification : { js : false, css : false,