20 lines
592 B
JavaScript
Raw Normal View History

2024-08-31 01:03:37 +08:00
kodReady.push(function(){
if(!$.supportCanvas()) return;
LNG.set(jsonDecode(urlDecode("{{LNG}}")));
Events.bind('explorer.kodApp.before',function(appList){
appList.push({
name:'{{package.id}}',
title:'{{package.name}}',
ext:"{{config.fileExt}}",
sort:"{{config.fileSort}}",
icon:"x-item-icon x-gif",
callback:function(path,ext,name){
var appStatic = "{{pluginHost}}static/";
var appStaticDefault = "{{pluginHostDefault}}static/";
requireAsync(appStatic+'page.js',function(app){
app(path,ext,name,appStatic,appStaticDefault);
});
}
});
});
});