minor changes

This commit is contained in:
coderaiser 2012-11-01 05:57:44 -04:00
parent eb720db4cf
commit daea85ecc8
2 changed files with 17 additions and 13 deletions

View file

@ -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(){

View file

@ -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 );
});