The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rocket.Chat/client/routes/pageNotFound.js

22 lines
557 B

import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/kadira:flow-router';
import './pageNotFound.html';
Template.pageNotFound.onRendered(function() {
const parent = document.querySelector('.page-loading');
const child = document.querySelector('.loading-animation');
parent.removeChild(child);
});
Template.pageNotFound.events({
'click .page-not-found-button-home'(e) {
e.preventDefault();
FlowRouter.go('home');
},
'click .page-not-found-button-previous'(e) {
e.preventDefault();
window.history.back();
},
});