@bookbox/view-html
Version:
Bookbox view for html
17 lines (16 loc) • 594 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.htmlDocumentInit = htmlDocumentInit;
const navigation_1 = require("../navigation");
const theme_1 = require("../theme");
const globalActions_1 = require("./globalActions");
function htmlDocumentInit() {
(0, globalActions_1.setGlobalActions)();
// after loading
document.addEventListener('DOMContentLoaded', () => {
(0, theme_1.setSavedTheme)();
const { observeNavigation } = (0, navigation_1.getNavigation)();
// start without finish
observeNavigation();
});
}