diff --git a/more/app-more.js b/more/app-more.js index a3bb7b5..7639a9a 100644 --- a/more/app-more.js +++ b/more/app-more.js @@ -41,11 +41,11 @@ tablet.webEventReceived.connect(onMoreAppWebEventReceived); tablet.screenChanged.connect(onMoreAppScreenChanged); - + /* Script.setTimeout(function() { sendRunningScriptList(); }, 2000); - + */ @@ -71,8 +71,10 @@ if(typeof eventz === "string"){ eventzget = JSON.parse(eventz); - - + + print("EVENT ACTION: " + eventzget.action); + print("EVENT SCRIPT: " + eventzget.script); + if(eventzget.action === "installScript"){ ScriptDiscoveryService.loadOneScript(eventzget.script); sendRunningScriptList(); diff --git a/more/more.html b/more/more.html index 08de170..0e722a2 100644 --- a/more/more.html +++ b/more/more.html @@ -297,7 +297,7 @@ var btn = ""; var absoluteJsFile = rootPath + item.jsfile; - var btn = "";//""; + var btn = ""; var btndata = { "url": absoluteJsFile, "id": window.btoa(item.name)