fixed bug with appcache config

This commit is contained in:
coderaiser 2012-10-02 05:58:44 -04:00
parent cd1aaa3b37
commit 1168477155
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2012.10.*, Version 0.1.8
* Fixed bug with appcache config. Windows reads file
not just like Linux.
2012.10.01, Version 0.1.7
* Changed name of menu files, fixed npm and jitsu

View file

@ -677,8 +677,11 @@ CloudServer.indexReaded = function(pList){
pIndex = pIndex.replace('<title>Cloud Commander</title>',
'<title>' + CloudFunc.setTitle() + '</title>');
if(!CloudServer.Config.appcache)
pIndex = pIndex.replace(' manifest="/cloudcmd.appcache"', '');
if(!CloudServer.Config.appcache){
if(process.platform === 'win32')
pIndex = pIndex.replace(' manifest=/cloudcmd.appcache', '');
else pIndex = pIndex.replace(' manifest="/cloudcmd.appcache"', '');
}
var lHeader;
/* если браузер поддерживает gzip-сжатие*/