blob: c930b09ff4f592dac353f7f9be179062b1b89a86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"use strict";
const views = require("../util/views.js");
const template = views.getTemplate("not-found");
class NotFoundView {
constructor(path) {
this._hostNode = document.getElementById("content-holder");
const sourceNode = template({ path: path });
views.replaceContent(this._hostNode, sourceNode);
views.syncScrollPosition();
}
}
module.exports = NotFoundView;
|