diff --git a/app.js b/app.js index 012f2f8..ba73498 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,6 @@ import { Layout } from "/components/layout.js" import { Page } from "/components/page.js" +import { PageActions } from "/components/page-actions.js" import { FileGroupPage } from "/components/file-group-page.js" import { Header } from "/components/header.js" import { NavMenu } from "/components/nav-menu.js" @@ -40,6 +41,7 @@ class Setup { const layout = document.createElement( 'm-layout' ) + layout.pageActions = new PageActions() layout.csp = undefined layout.header.menu.handleLinks = true document.body.appendChild(layout) @@ -60,9 +62,11 @@ class Setup { } load() { + const layout = document.createElement('m-layout') + layout.pageActions = new PageActions() if (this.registration.active) { document.body.appendChild( - document.createElement('m-layout') + layout ) } } diff --git a/sw.js b/sw.js index 0202dce..7297909 100644 --- a/sw.js +++ b/sw.js @@ -18,7 +18,7 @@ async function initCache() { '/loader/builder.js', '/loader/editor-build.js', '/menu/dropdown.js', - ]) + ]) //1 } self.addEventListener("install", event => { @@ -54,4 +54,4 @@ self.addEventListener('fetch', event => { self.addEventListener('activate', event => { event.waitUntil(clients.claim()) -}) \ No newline at end of file +})