diff --git a/scripts/pages/page.js b/scripts/pages/page.js index 89b3ed5..3c722e5 100644 --- a/scripts/pages/page.js +++ b/scripts/pages/page.js @@ -7,9 +7,14 @@ import windowman from "/scripts/GUI/builder/windowman.js"; export default class Page { constructor () { this.window = window; - this.window[`manager`] = new windowman(); - (this.window[`manager`]) ? this.window.manager.sync() : false; + + // Link the elements from this.window.manager to this.window for convenience later on. + if ((this.window[`manager`])) { + this.window.manager.sync(); + + Object.assign(this.window, this.window[`manager`]); + } document.addEventListener("DOMContentLoaded", function () { M.AutoInit();