diff --git a/js/module.js b/js/module.js index 4c454558..84222fa3 100644 --- a/js/module.js +++ b/js/module.js @@ -7,7 +7,7 @@ * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. */ -var Module = Class.extend({ +const Module = Class.extend({ /********************************************************* * All methods (and properties) below can be subclassed. * *********************************************************/ @@ -510,6 +510,8 @@ Module.register = function (name, moduleDefinition) { Module.definitions[name] = moduleDefinition; }; +window.Module = Module; + /** * Compare two semantic version numbers and return the difference. * diff --git a/js/translator.js b/js/translator.js index bff29d61..d69a9a1a 100644 --- a/js/translator.js +++ b/js/translator.js @@ -6,7 +6,7 @@ * By Christopher Fenner https://github.com/CFenner * MIT Licensed. */ -var Translator = (function () { +const Translator = (function () { /** * Load a JSON file via XHR. * @@ -151,3 +151,5 @@ var Translator = (function () { } }; })(); + +window.Translator = Translator; diff --git a/translations/translations.js b/translations/translations.js index cddd3b74..85182053 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -5,7 +5,7 @@ * MIT Licensed. */ -var translations = { +let translations = { en: "translations/en.json", // English nl: "translations/nl.json", // Dutch de: "translations/de.json", // German