Linting
This commit is contained in:
parent
aeb3206fd9
commit
21e0e6c624
10 changed files with 112 additions and 87 deletions
|
@ -1,8 +1,10 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
const { Route } = Ember;
|
||||
|
||||
export default Route.extend({
|
||||
redirect: function() {
|
||||
let url = this.router.location.formatURL('/not-found');
|
||||
const url = this.router.location.formatURL('/not-found');
|
||||
|
||||
if (window.location.pathname !== url) {
|
||||
this.transitionTo('/not-found');
|
||||
|
|
Reference in a new issue