mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
Removed part of url thet says that js is disabled ("no-js")
This commit is contained in:
parent
307c22173e
commit
d8a053f670
8 changed files with 42 additions and 59 deletions
|
|
@ -23,9 +23,7 @@
|
|||
|
||||
FILE_NOT_FOUND = main.FILE_NOT_FOUND,
|
||||
OK = main.OK,
|
||||
|
||||
FS = CloudFunc.FS,
|
||||
NO_JS = CloudFunc.NOJS,
|
||||
|
||||
INDEX = null,
|
||||
REQUEST = 'request',
|
||||
|
|
@ -382,7 +380,7 @@
|
|||
|
||||
function getCleanPath(pReq){
|
||||
var lPath = getPath(pReq),
|
||||
lRet = Util.removeStr(lPath, [NO_JS, FS]) || main.SLASH;
|
||||
lRet = Util.removeStr(lPath, FS) || main.SLASH;
|
||||
|
||||
return lRet;
|
||||
}
|
||||
|
|
@ -401,8 +399,7 @@
|
|||
if(pReq){
|
||||
lPath = getPath(pReq);
|
||||
|
||||
lNoJS = Util.isContainStr(lPath, NO_JS)
|
||||
|| lPath === '/' || main.getQuery(pReq) === 'html';
|
||||
lNoJS = lPath === '/' || main.getQuery(pReq) === 'html';
|
||||
}
|
||||
|
||||
return lNoJS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue