szurubooru/client/js/views/not_found_view.js
2016-07-13 17:18:28 +02:00

18 lines
448 B
JavaScript

'use strict';
const config = require('../config.js');
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;