From ad4abd5d5491896acd8dddc8c090768609aaa00a Mon Sep 17 00:00:00 2001 From: Keb Helion <60008426+KebHelion@users.noreply.github.com> Date: Fri, 14 Feb 2020 00:12:16 -0500 Subject: [PATCH] Add files via upload --- more/app-more.js | 10 ++++++---- more/more.html | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) 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)