aboutsummaryrefslogtreecommitdiff
path: root/client/js/controllers/not_found_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controllers/not_found_controller.js')
-rw-r--r--client/js/controllers/not_found_controller.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/js/controllers/not_found_controller.js b/client/js/controllers/not_found_controller.js
index 8ceeef0..c99e308 100644
--- a/client/js/controllers/not_found_controller.js
+++ b/client/js/controllers/not_found_controller.js
@@ -1,18 +1,18 @@
-'use strict';
+"use strict";
-const topNavigation = require('../models/top_navigation.js');
-const NotFoundView = require('../views/not_found_view.js');
+const topNavigation = require("../models/top_navigation.js");
+const NotFoundView = require("../views/not_found_view.js");
class NotFoundController {
constructor(path) {
- topNavigation.activate('');
- topNavigation.setTitle('Not found');
+ topNavigation.activate("");
+ topNavigation.setTitle("Not found");
this._notFoundView = new NotFoundView(path);
}
}
-module.exports = router => {
+module.exports = (router) => {
router.enter(null, (ctx, next) => {
ctx.controller = new NotFoundController(ctx.canonicalPath);
});
-}
+};

© 2015 - 2026 Jakob L. Kreuze