From aacd468d9e5cae4e689f9f70e932d9a496d6a6ba Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 24 Jul 2018 17:04:23 +0300 Subject: Netlify CMS stuff --- exampleSite/static/img/README.md | 1 + static/sw.js | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) create mode 100644 exampleSite/static/img/README.md delete mode 100644 static/sw.js diff --git a/exampleSite/static/img/README.md b/exampleSite/static/img/README.md new file mode 100644 index 0000000..5f250f1 --- /dev/null +++ b/exampleSite/static/img/README.md @@ -0,0 +1 @@ +For users of Netlify CMS with cState, `static/img` is the media folder in the config. diff --git a/static/sw.js b/static/sw.js deleted file mode 100644 index e778677..0000000 --- a/static/sw.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -self.addEventListener('notificationclick', function(e) { - var notification = e.notification; - var primaryKey = notification.data.primaryKey; - var action = e.action; - - if (action === 'close') { - notification.close(); - } else { - clients.openWindow(permalink); - notification.close(); - } -}); -- cgit v1.2.3-70-g09d2