This commit is contained in:
libccy 2016-03-26 18:01:14 +08:00
parent 855b7f2d99
commit eb00081e6e
2 changed files with 58 additions and 20 deletions

View File

@ -2834,7 +2834,7 @@
}
}
}
if(scripts[i].src.indexOf('asset')!=-1){
if(scripts[i].src.indexOf('cordova')!=-1){
lib.assetLoading=[];
}
break;
@ -3200,6 +3200,7 @@
navigator.app.exitApp();
}
});
if(window.resolveLocalFileSystemURL){
window.resolveLocalFileSystemURL(cordova.file.externalApplicationStorageDirectory,function(entry){
var url=entry.toURL();
if(Array.isArray(lib.assetLoading)){
@ -3223,6 +3224,7 @@
});
}
}
}
},
css:function(path,file,before){
var style = document.createElement("link");

36
manifest.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "noname",
"xwalk_version": "1.8.0",
"xwalk_app_version": "1.8.0",
"xwalk_package_id": "com.widget.noname_full",
"xwalk_android_keep_screen_on":true,
"start_url": "index.html",
"icons": [
{
"src": "../res/icon/icon-256.png",
"sizes": "192x192",
"type": "image/png",
"density": "1.3"
},
{
"src": "../res/icon/icon-256.png",
"sizes": "144x144",
"type": "image/png",
"density": "1.8"
},
{
"src": "../res/icon/icon-256.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.7"
},
{
"src": "../res/icon/icon-256.png",
"sizes": "72x72",
"type": "image/png",
"density": "3.6"
}
],
"display": "fullscreen",
"orientation": "landscape"
}