diff --git a/lib/app/index.js b/lib/app/index.js index 94ac81ee17..6103e8f35b 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -530,6 +530,10 @@ ready(function(model) { exports.toggleDebug = function() { return model.set('_debug', !model.get('_debug')); }; + exports.loadUserSession = function(e, el) { + model.set('_session.userId', model.get('_loadUserId')); + return window.location.reload(); + }; exports.revive = function(e, el) { var stats; stats = model.at('_user.stats'); diff --git a/src/app/index.coffee b/src/app/index.coffee index 9c40959bfe..17cb63204f 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -402,6 +402,10 @@ ready (model) -> exports.toggleDebug = -> model.set('_debug', !model.get('_debug')) + exports.loadUserSession = (e, el) -> + model.set('_session.userId', model.get('_loadUserId')) + window.location.reload() + exports.revive = (e, el) -> stats = model.at '_user.stats' stats.set 'hp', 50; stats.set 'lvl', 1; stats.set 'exp', 0; stats.set 'money', 0 diff --git a/views/app/index.html b/views/app/index.html index 5a812ef6b9..2e1372bee3 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -65,10 +65,16 @@
{#if _debug}
- Debugging Options -  Cron -  Tally -  Tyler Defaults + Debugging Options

+
+ +
+ Cron + Tally + Tyler Defaults
{/}