From 35da6721eaca0f2ff6cffb3732384f7ad9fe055c Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Mon, 13 Apr 2020 00:24:35 -0400 Subject: [PATCH] Do not cache newly installed scripts in the more app. --- scripts/system/more/app-more.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/system/more/app-more.js b/scripts/system/more/app-more.js index 99b359d9e8..1902ddf855 100644 --- a/scripts/system/more/app-more.js +++ b/scripts/system/more/app-more.js @@ -11,7 +11,8 @@ // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// +// + (function() { var ROOT = Script.resolvePath('').split("app-more.js")[0]; var APP_NAME = "MORE..."; @@ -68,8 +69,7 @@ if (instruction.action === "installScript") { if (lastProcessing.action !== instruction.action || lastProcessing.script !== instruction.script) { - ScriptDiscoveryService.loadOneScript(instruction.script); - lastProcessing.action = instruction.action; + ScriptDiscoveryService.loadScript(instruction.script, true, false, false, true, false); // Force reload the script, do not use cache. lastProcessing.action = instruction.action; lastProcessing.script = instruction.script; Script.setTimeout(function() { sendRunningScriptList();