From 05f330a0fec312af4b568eea632b4d7ec7cc7085 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 19 Oct 2018 10:06:38 -0300 Subject: [PATCH] Adding url for retrieving the bot from the canvas page --- CloudVM/CloudRequire.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CloudVM/CloudRequire.js b/CloudVM/CloudRequire.js index 863d8f29f..403aa8809 100644 --- a/CloudVM/CloudRequire.js +++ b/CloudVM/CloudRequire.js @@ -18,7 +18,7 @@ if (INFO_LOG === true) { logger.write(MODULE_NAME, "[INFO] downloadBot -> Entering function."); } - let filePath = "Bots" + "/" + pFilePath + "/" + "User.Bot.js"; + let filePath = window.URL_PREFIX + "Bots" + "/" + pFilePath + "/" + "User.Bot.js"; downloadModule(filePath, onDownloaded) @@ -41,7 +41,7 @@ if (INFO_LOG === true) { logger.write(MODULE_NAME, "[INFO] downloadCommons -> Entering function."); } - let filePath = "Bots" + "/" + pFilePath + "/" + "Commons.js"; + let filePath = window.URL_PREFIX + "Bots" + "/" + pFilePath + "/" + "Commons.js"; downloadModule(filePath, onDownloaded)