interface Templates {
	gameError: Template;
}

Template.gameError.helpers({
	errorMessage: function () {
		return Session.get('splashMessage') ? Session.get('splashMessage') : 'Something went wrong, please reload the page or wait a bit while we are fixing this issue';
	}
});

Template.gameError.destroyed = function () {
	Session.set('splashTemplate', undefined);
	Session.set('splashMessage', undefined);
};
