rename /rpg-docs to /app

This commit is contained in:
Andrew Zhu
2018-06-07 01:07:49 -07:00
parent de93636c7c
commit c099e3173b
420 changed files with 12 additions and 25 deletions

View File

@@ -0,0 +1,17 @@
Template.error.onRendered(function(){
const error = Session.get("error") || {};
if (error.href) window.history.replaceState("", "", error.href);
});
Template.error.helpers({
errorMessage: function(){
const error = Session.get("error") || {};
return error.reason;
},
});
Template.error.events({
"click .try-again": function(event, instance){
window.location.reload();
},
});