diff --git a/app/assets/js/configmanager.js b/app/assets/js/configmanager.js index 65a7306..0a1e81c 100644 --- a/app/assets/js/configmanager.js +++ b/app/assets/js/configmanager.js @@ -103,7 +103,8 @@ const DEFAULT_CONFIG = { selectedServer: null, // Resolved selectedAccount: null, authenticationDatabase: {}, - modConfigurations: [] + modConfigurations: [], + testDistro: false } let config = null @@ -158,6 +159,14 @@ exports.load = function(){ logger.log('Successfully Loaded') } +exports.setTesting = function(v){ + config.testDistro = v ? true: false + exports.save() +} + +exports.isTesting = function(){ + return config.testDistro +} /** * @returns {boolean} Whether or not the manager has been loaded. */ @@ -685,4 +694,4 @@ exports.getAllowPrerelease = function(def = false){ */ exports.setAllowPrerelease = function(allowPrerelease){ config.settings.launcher.allowPrerelease = allowPrerelease -} \ No newline at end of file +}