//1. send out the applicationready message
var evt = new CustomEvent('applicationready',
{ bubbles: true,
cancelable: false,
detail: { applications: this.installedApps } });
window.dispatchEvent(evt);
//2. receive the applicationready message
window.addEventListener('applicationready', function appListReady(event) {
window.removeEventListener('applicationready', appListReady);
registerGlobalEntries();
safelyLaunchFTU();
});
Firefox OS system app
最新推荐文章于 2018-05-23 20:16:19 发布