szurubooru/client/js/views/not_found_view.js
Shyam Sunder 3972b902d8 client: fetch configurations from server at runtime
Permissions, regex filters, app title, email info,
and safety now fetched using server's Info API
2018-06-27 21:20:03 +02:00

17 lines
408 B
JavaScript

'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;