mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
eb720db4cf
commit
daea85ecc8
2 changed files with 17 additions and 13 deletions
22
cloudcmd.js
22
cloudcmd.js
|
|
@ -56,18 +56,16 @@ function indexProcessing(pIndex, pList){
|
|||
}
|
||||
|
||||
function appCacheProcessing(){
|
||||
var lAppCache = srv.AppCache;
|
||||
/* создаём файл app cache */
|
||||
if(srv.Config.appcache && lAppCache && srv.Config.server){
|
||||
var lFiles = [{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
|
||||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
|
||||
|
||||
if(srv.Minify._allowed.css)
|
||||
lFiles.push('./min/all.min.css');
|
||||
|
||||
lAppCache.addFiles(lFiles);
|
||||
lAppCache.createManifest();
|
||||
}
|
||||
var lAppCache = srv.AppCache,
|
||||
|
||||
lFiles = [{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
|
||||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
|
||||
|
||||
if(srv.Minify._allowed.css)
|
||||
lFiles.push('./min/all.min.css');
|
||||
|
||||
lAppCache.addFiles(lFiles);
|
||||
lAppCache.createManifest();
|
||||
}
|
||||
|
||||
function readConfig(){
|
||||
|
|
|
|||
|
|
@ -138,7 +138,13 @@ CloudServer.init = (function(pAppCachProcessing){
|
|||
this.Minify._allowed = this.Minify.doit();
|
||||
|
||||
|
||||
Util.exec( pAppCachProcessing );
|
||||
var lAppCache = CloudServer.AppCache;
|
||||
|
||||
/* создаём файл app cache */
|
||||
if( CloudServer.Config.appcache &&
|
||||
lAppCache &&
|
||||
CloudServer.Config.server )
|
||||
Util.exec( pAppCachProcessing );
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue