diff --git a/src/module.json b/src/module.json index 3ed545c..c3b6130 100644 --- a/src/module.json +++ b/src/module.json @@ -20,11 +20,11 @@ "path": "lang/en.json" } ], - "download": "https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/download/0.5.2/module.zip", + "download": "https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/download/0.5.3/module.zip", "manifest": "https://github.com/anthonyscorrea/asc-session-title-suggestions/releases/latest/download/module.json", - "version": "0.5.2", + "version": "0.5.3", "scripts": [ - "scripts/main.js" + "scripts/asc-session-title-suggestions.js" ], "esmodules":[ ], diff --git a/src/scripts/main.js b/src/scripts/asc-session-title-suggestions.js similarity index 96% rename from src/scripts/main.js rename to src/scripts/asc-session-title-suggestions.js index 6a882d8..30ef2fa 100644 --- a/src/scripts/main.js +++ b/src/scripts/asc-session-title-suggestions.js @@ -101,8 +101,10 @@ function registerCustomChatCommands() { Hooks.on("init", function() { //This code runs once the Foundry VTT software begins its initialization workflow registerClipboardCopyButton(); - Object.values(TEMPLATES.suggestion).forEach((template_path)=>loadTemplates(template_path)) - Object.values(TEMPLATES.suggestionList).forEach((template_path)=>loadTemplates(template_path)) + loadTemplates([ + ...Object.values(TEMPLATES.suggestion), + ...Object.values(TEMPLATES.suggestionList) + ]) game.settings.register("asc-session-title-suggestions", "titleListCommandRole", { name: game.i18n.localize("SESSION_TITLE_SUGGESTIONS.SETTING_ROLE_NAME"), scope: "world",