diff --git a/dist/FiraCode.ttf b/app/FiraCode.ttf
similarity index 100%
rename from dist/FiraCode.ttf
rename to app/FiraCode.ttf
diff --git a/dist/changelog.html b/app/changelog.html
similarity index 100%
rename from dist/changelog.html
rename to app/changelog.html
diff --git a/dist/icon-48.png b/app/icon-48.png
similarity index 100%
rename from dist/icon-48.png
rename to app/icon-48.png
diff --git a/dist/index.html b/app/index.html
similarity index 99%
rename from dist/index.html
rename to app/index.html
index 03abad0..9f0d6fa 100644
--- a/dist/index.html
+++ b/app/index.html
@@ -203,7 +203,7 @@
-
+
@@ -231,7 +231,7 @@
@@ -242,7 +242,7 @@
Add Library
@@ -272,7 +272,7 @@
Atomic CSS Settings
@@ -374,7 +374,7 @@
-
+
@@ -385,7 +385,7 @@
Settings
@@ -502,7 +502,7 @@
-
+
Fun
diff --git a/dist/lib/atomizer.browser.js b/app/lib/atomizer.browser.js
similarity index 100%
rename from dist/lib/atomizer.browser.js
rename to app/lib/atomizer.browser.js
diff --git a/dist/lib/babel-polyfill.min.js b/app/lib/babel-polyfill.min.js
similarity index 100%
rename from dist/lib/babel-polyfill.min.js
rename to app/lib/babel-polyfill.min.js
diff --git a/dist/lib/babel.min.js b/app/lib/babel.min.js
similarity index 100%
rename from dist/lib/babel.min.js
rename to app/lib/babel.min.js
diff --git a/dist/lib/code-blast.js b/app/lib/code-blast.js
similarity index 100%
rename from dist/lib/code-blast.js
rename to app/lib/code-blast.js
diff --git a/dist/lib/codemirror/.gitattributes b/app/lib/codemirror/.gitattributes
similarity index 100%
rename from dist/lib/codemirror/.gitattributes
rename to app/lib/codemirror/.gitattributes
diff --git a/dist/lib/codemirror/.gitignore b/app/lib/codemirror/.gitignore
similarity index 100%
rename from dist/lib/codemirror/.gitignore
rename to app/lib/codemirror/.gitignore
diff --git a/dist/lib/codemirror/.npmignore b/app/lib/codemirror/.npmignore
similarity index 100%
rename from dist/lib/codemirror/.npmignore
rename to app/lib/codemirror/.npmignore
diff --git a/dist/lib/codemirror/.travis.yml b/app/lib/codemirror/.travis.yml
similarity index 100%
rename from dist/lib/codemirror/.travis.yml
rename to app/lib/codemirror/.travis.yml
diff --git a/dist/lib/codemirror/LICENSE b/app/lib/codemirror/LICENSE
similarity index 100%
rename from dist/lib/codemirror/LICENSE
rename to app/lib/codemirror/LICENSE
diff --git a/dist/lib/codemirror/README.md b/app/lib/codemirror/README.md
similarity index 100%
rename from dist/lib/codemirror/README.md
rename to app/lib/codemirror/README.md
diff --git a/dist/lib/codemirror/mode/coffeescript/coffeescript.js b/app/lib/codemirror/mode/coffeescript/coffeescript.js
similarity index 100%
rename from dist/lib/codemirror/mode/coffeescript/coffeescript.js
rename to app/lib/codemirror/mode/coffeescript/coffeescript.js
diff --git a/dist/lib/codemirror/mode/css/css.js b/app/lib/codemirror/mode/css/css.js
similarity index 100%
rename from dist/lib/codemirror/mode/css/css.js
rename to app/lib/codemirror/mode/css/css.js
diff --git a/dist/lib/codemirror/mode/css/gss.html b/app/lib/codemirror/mode/css/gss.html
similarity index 100%
rename from dist/lib/codemirror/mode/css/gss.html
rename to app/lib/codemirror/mode/css/gss.html
diff --git a/dist/lib/codemirror/mode/css/gss_test.js b/app/lib/codemirror/mode/css/gss_test.js
similarity index 100%
rename from dist/lib/codemirror/mode/css/gss_test.js
rename to app/lib/codemirror/mode/css/gss_test.js
diff --git a/dist/lib/codemirror/mode/css/less.html b/app/lib/codemirror/mode/css/less.html
similarity index 100%
rename from dist/lib/codemirror/mode/css/less.html
rename to app/lib/codemirror/mode/css/less.html
diff --git a/dist/lib/codemirror/mode/css/scss.html b/app/lib/codemirror/mode/css/scss.html
similarity index 100%
rename from dist/lib/codemirror/mode/css/scss.html
rename to app/lib/codemirror/mode/css/scss.html
diff --git a/dist/lib/codemirror/mode/haml/haml.js b/app/lib/codemirror/mode/haml/haml.js
similarity index 100%
rename from dist/lib/codemirror/mode/haml/haml.js
rename to app/lib/codemirror/mode/haml/haml.js
diff --git a/dist/lib/codemirror/mode/htmlembedded/htmlembedded.js b/app/lib/codemirror/mode/htmlembedded/htmlembedded.js
similarity index 100%
rename from dist/lib/codemirror/mode/htmlembedded/htmlembedded.js
rename to app/lib/codemirror/mode/htmlembedded/htmlembedded.js
diff --git a/dist/lib/codemirror/mode/htmlmixed/htmlmixed.js b/app/lib/codemirror/mode/htmlmixed/htmlmixed.js
similarity index 100%
rename from dist/lib/codemirror/mode/htmlmixed/htmlmixed.js
rename to app/lib/codemirror/mode/htmlmixed/htmlmixed.js
diff --git a/dist/lib/codemirror/mode/javascript/javascript.js b/app/lib/codemirror/mode/javascript/javascript.js
similarity index 100%
rename from dist/lib/codemirror/mode/javascript/javascript.js
rename to app/lib/codemirror/mode/javascript/javascript.js
diff --git a/dist/lib/codemirror/mode/javascript/json-ld.html b/app/lib/codemirror/mode/javascript/json-ld.html
similarity index 100%
rename from dist/lib/codemirror/mode/javascript/json-ld.html
rename to app/lib/codemirror/mode/javascript/json-ld.html
diff --git a/dist/lib/codemirror/mode/javascript/typescript.html b/app/lib/codemirror/mode/javascript/typescript.html
similarity index 100%
rename from dist/lib/codemirror/mode/javascript/typescript.html
rename to app/lib/codemirror/mode/javascript/typescript.html
diff --git a/dist/lib/codemirror/mode/jsx/jsx.js b/app/lib/codemirror/mode/jsx/jsx.js
similarity index 100%
rename from dist/lib/codemirror/mode/jsx/jsx.js
rename to app/lib/codemirror/mode/jsx/jsx.js
diff --git a/dist/lib/codemirror/mode/markdown/markdown.js b/app/lib/codemirror/mode/markdown/markdown.js
similarity index 100%
rename from dist/lib/codemirror/mode/markdown/markdown.js
rename to app/lib/codemirror/mode/markdown/markdown.js
diff --git a/dist/lib/codemirror/mode/meta.js b/app/lib/codemirror/mode/meta.js
similarity index 100%
rename from dist/lib/codemirror/mode/meta.js
rename to app/lib/codemirror/mode/meta.js
diff --git a/dist/lib/codemirror/mode/pug/pug.js b/app/lib/codemirror/mode/pug/pug.js
similarity index 100%
rename from dist/lib/codemirror/mode/pug/pug.js
rename to app/lib/codemirror/mode/pug/pug.js
diff --git a/dist/lib/codemirror/mode/sass/sass.js b/app/lib/codemirror/mode/sass/sass.js
similarity index 100%
rename from dist/lib/codemirror/mode/sass/sass.js
rename to app/lib/codemirror/mode/sass/sass.js
diff --git a/dist/lib/codemirror/mode/stylus/stylus.js b/app/lib/codemirror/mode/stylus/stylus.js
similarity index 100%
rename from dist/lib/codemirror/mode/stylus/stylus.js
rename to app/lib/codemirror/mode/stylus/stylus.js
diff --git a/dist/lib/codemirror/mode/xml/xml.js b/app/lib/codemirror/mode/xml/xml.js
similarity index 100%
rename from dist/lib/codemirror/mode/xml/xml.js
rename to app/lib/codemirror/mode/xml/xml.js
diff --git a/dist/lib/codemirror/package.json b/app/lib/codemirror/package.json
similarity index 100%
rename from dist/lib/codemirror/package.json
rename to app/lib/codemirror/package.json
diff --git a/dist/lib/codemirror/theme/3024-day.css b/app/lib/codemirror/theme/3024-day.css
similarity index 100%
rename from dist/lib/codemirror/theme/3024-day.css
rename to app/lib/codemirror/theme/3024-day.css
diff --git a/dist/lib/codemirror/theme/3024-night.css b/app/lib/codemirror/theme/3024-night.css
similarity index 100%
rename from dist/lib/codemirror/theme/3024-night.css
rename to app/lib/codemirror/theme/3024-night.css
diff --git a/dist/lib/codemirror/theme/abcdef.css b/app/lib/codemirror/theme/abcdef.css
similarity index 100%
rename from dist/lib/codemirror/theme/abcdef.css
rename to app/lib/codemirror/theme/abcdef.css
diff --git a/dist/lib/codemirror/theme/ambiance-mobile.css b/app/lib/codemirror/theme/ambiance-mobile.css
similarity index 100%
rename from dist/lib/codemirror/theme/ambiance-mobile.css
rename to app/lib/codemirror/theme/ambiance-mobile.css
diff --git a/dist/lib/codemirror/theme/ambiance.css b/app/lib/codemirror/theme/ambiance.css
similarity index 100%
rename from dist/lib/codemirror/theme/ambiance.css
rename to app/lib/codemirror/theme/ambiance.css
diff --git a/dist/lib/codemirror/theme/base16-dark.css b/app/lib/codemirror/theme/base16-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/base16-dark.css
rename to app/lib/codemirror/theme/base16-dark.css
diff --git a/dist/lib/codemirror/theme/base16-light.css b/app/lib/codemirror/theme/base16-light.css
similarity index 100%
rename from dist/lib/codemirror/theme/base16-light.css
rename to app/lib/codemirror/theme/base16-light.css
diff --git a/dist/lib/codemirror/theme/base2tone-meadow-dark.css b/app/lib/codemirror/theme/base2tone-meadow-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/base2tone-meadow-dark.css
rename to app/lib/codemirror/theme/base2tone-meadow-dark.css
diff --git a/dist/lib/codemirror/theme/bespin.css b/app/lib/codemirror/theme/bespin.css
similarity index 100%
rename from dist/lib/codemirror/theme/bespin.css
rename to app/lib/codemirror/theme/bespin.css
diff --git a/dist/lib/codemirror/theme/blackboard.css b/app/lib/codemirror/theme/blackboard.css
similarity index 100%
rename from dist/lib/codemirror/theme/blackboard.css
rename to app/lib/codemirror/theme/blackboard.css
diff --git a/dist/lib/codemirror/theme/cobalt.css b/app/lib/codemirror/theme/cobalt.css
similarity index 100%
rename from dist/lib/codemirror/theme/cobalt.css
rename to app/lib/codemirror/theme/cobalt.css
diff --git a/dist/lib/codemirror/theme/colorforth.css b/app/lib/codemirror/theme/colorforth.css
similarity index 100%
rename from dist/lib/codemirror/theme/colorforth.css
rename to app/lib/codemirror/theme/colorforth.css
diff --git a/dist/lib/codemirror/theme/dracula.css b/app/lib/codemirror/theme/dracula.css
similarity index 100%
rename from dist/lib/codemirror/theme/dracula.css
rename to app/lib/codemirror/theme/dracula.css
diff --git a/dist/lib/codemirror/theme/duotone-dark.css b/app/lib/codemirror/theme/duotone-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/duotone-dark.css
rename to app/lib/codemirror/theme/duotone-dark.css
diff --git a/dist/lib/codemirror/theme/duotone-light.css b/app/lib/codemirror/theme/duotone-light.css
similarity index 100%
rename from dist/lib/codemirror/theme/duotone-light.css
rename to app/lib/codemirror/theme/duotone-light.css
diff --git a/dist/lib/codemirror/theme/eclipse.css b/app/lib/codemirror/theme/eclipse.css
similarity index 100%
rename from dist/lib/codemirror/theme/eclipse.css
rename to app/lib/codemirror/theme/eclipse.css
diff --git a/dist/lib/codemirror/theme/elegant.css b/app/lib/codemirror/theme/elegant.css
similarity index 100%
rename from dist/lib/codemirror/theme/elegant.css
rename to app/lib/codemirror/theme/elegant.css
diff --git a/dist/lib/codemirror/theme/erlang-dark.css b/app/lib/codemirror/theme/erlang-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/erlang-dark.css
rename to app/lib/codemirror/theme/erlang-dark.css
diff --git a/dist/lib/codemirror/theme/hopscotch.css b/app/lib/codemirror/theme/hopscotch.css
similarity index 100%
rename from dist/lib/codemirror/theme/hopscotch.css
rename to app/lib/codemirror/theme/hopscotch.css
diff --git a/dist/lib/codemirror/theme/icecoder.css b/app/lib/codemirror/theme/icecoder.css
similarity index 100%
rename from dist/lib/codemirror/theme/icecoder.css
rename to app/lib/codemirror/theme/icecoder.css
diff --git a/dist/lib/codemirror/theme/isotope.css b/app/lib/codemirror/theme/isotope.css
similarity index 100%
rename from dist/lib/codemirror/theme/isotope.css
rename to app/lib/codemirror/theme/isotope.css
diff --git a/dist/lib/codemirror/theme/lesser-dark.css b/app/lib/codemirror/theme/lesser-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/lesser-dark.css
rename to app/lib/codemirror/theme/lesser-dark.css
diff --git a/dist/lib/codemirror/theme/liquibyte.css b/app/lib/codemirror/theme/liquibyte.css
similarity index 100%
rename from dist/lib/codemirror/theme/liquibyte.css
rename to app/lib/codemirror/theme/liquibyte.css
diff --git a/dist/lib/codemirror/theme/material.css b/app/lib/codemirror/theme/material.css
similarity index 100%
rename from dist/lib/codemirror/theme/material.css
rename to app/lib/codemirror/theme/material.css
diff --git a/dist/lib/codemirror/theme/mbo.css b/app/lib/codemirror/theme/mbo.css
similarity index 100%
rename from dist/lib/codemirror/theme/mbo.css
rename to app/lib/codemirror/theme/mbo.css
diff --git a/dist/lib/codemirror/theme/mdn-like.css b/app/lib/codemirror/theme/mdn-like.css
similarity index 100%
rename from dist/lib/codemirror/theme/mdn-like.css
rename to app/lib/codemirror/theme/mdn-like.css
diff --git a/dist/lib/codemirror/theme/midnight.css b/app/lib/codemirror/theme/midnight.css
similarity index 100%
rename from dist/lib/codemirror/theme/midnight.css
rename to app/lib/codemirror/theme/midnight.css
diff --git a/dist/lib/codemirror/theme/monokai.css b/app/lib/codemirror/theme/monokai.css
similarity index 100%
rename from dist/lib/codemirror/theme/monokai.css
rename to app/lib/codemirror/theme/monokai.css
diff --git a/dist/lib/codemirror/theme/neat.css b/app/lib/codemirror/theme/neat.css
similarity index 100%
rename from dist/lib/codemirror/theme/neat.css
rename to app/lib/codemirror/theme/neat.css
diff --git a/dist/lib/codemirror/theme/neo.css b/app/lib/codemirror/theme/neo.css
similarity index 100%
rename from dist/lib/codemirror/theme/neo.css
rename to app/lib/codemirror/theme/neo.css
diff --git a/dist/lib/codemirror/theme/night.css b/app/lib/codemirror/theme/night.css
similarity index 100%
rename from dist/lib/codemirror/theme/night.css
rename to app/lib/codemirror/theme/night.css
diff --git a/dist/lib/codemirror/theme/panda-syntax.css b/app/lib/codemirror/theme/panda-syntax.css
similarity index 100%
rename from dist/lib/codemirror/theme/panda-syntax.css
rename to app/lib/codemirror/theme/panda-syntax.css
diff --git a/dist/lib/codemirror/theme/paraiso-dark.css b/app/lib/codemirror/theme/paraiso-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/paraiso-dark.css
rename to app/lib/codemirror/theme/paraiso-dark.css
diff --git a/dist/lib/codemirror/theme/paraiso-light.css b/app/lib/codemirror/theme/paraiso-light.css
similarity index 100%
rename from dist/lib/codemirror/theme/paraiso-light.css
rename to app/lib/codemirror/theme/paraiso-light.css
diff --git a/dist/lib/codemirror/theme/pastel-on-dark.css b/app/lib/codemirror/theme/pastel-on-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/pastel-on-dark.css
rename to app/lib/codemirror/theme/pastel-on-dark.css
diff --git a/dist/lib/codemirror/theme/railscasts.css b/app/lib/codemirror/theme/railscasts.css
similarity index 100%
rename from dist/lib/codemirror/theme/railscasts.css
rename to app/lib/codemirror/theme/railscasts.css
diff --git a/dist/lib/codemirror/theme/rubyblue.css b/app/lib/codemirror/theme/rubyblue.css
similarity index 100%
rename from dist/lib/codemirror/theme/rubyblue.css
rename to app/lib/codemirror/theme/rubyblue.css
diff --git a/dist/lib/codemirror/theme/seti.css b/app/lib/codemirror/theme/seti.css
similarity index 100%
rename from dist/lib/codemirror/theme/seti.css
rename to app/lib/codemirror/theme/seti.css
diff --git a/dist/lib/codemirror/theme/solarized dark.css b/app/lib/codemirror/theme/solarized dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/solarized dark.css
rename to app/lib/codemirror/theme/solarized dark.css
diff --git a/dist/lib/codemirror/theme/solarized light.css b/app/lib/codemirror/theme/solarized light.css
similarity index 100%
rename from dist/lib/codemirror/theme/solarized light.css
rename to app/lib/codemirror/theme/solarized light.css
diff --git a/dist/lib/codemirror/theme/the-matrix.css b/app/lib/codemirror/theme/the-matrix.css
similarity index 100%
rename from dist/lib/codemirror/theme/the-matrix.css
rename to app/lib/codemirror/theme/the-matrix.css
diff --git a/dist/lib/codemirror/theme/tomorrow-night-bright.css b/app/lib/codemirror/theme/tomorrow-night-bright.css
similarity index 100%
rename from dist/lib/codemirror/theme/tomorrow-night-bright.css
rename to app/lib/codemirror/theme/tomorrow-night-bright.css
diff --git a/dist/lib/codemirror/theme/tomorrow-night-eighties.css b/app/lib/codemirror/theme/tomorrow-night-eighties.css
similarity index 100%
rename from dist/lib/codemirror/theme/tomorrow-night-eighties.css
rename to app/lib/codemirror/theme/tomorrow-night-eighties.css
diff --git a/dist/lib/codemirror/theme/ttcn.css b/app/lib/codemirror/theme/ttcn.css
similarity index 100%
rename from dist/lib/codemirror/theme/ttcn.css
rename to app/lib/codemirror/theme/ttcn.css
diff --git a/dist/lib/codemirror/theme/twilight.css b/app/lib/codemirror/theme/twilight.css
similarity index 100%
rename from dist/lib/codemirror/theme/twilight.css
rename to app/lib/codemirror/theme/twilight.css
diff --git a/dist/lib/codemirror/theme/vibrant-ink.css b/app/lib/codemirror/theme/vibrant-ink.css
similarity index 100%
rename from dist/lib/codemirror/theme/vibrant-ink.css
rename to app/lib/codemirror/theme/vibrant-ink.css
diff --git a/dist/lib/codemirror/theme/xq-dark.css b/app/lib/codemirror/theme/xq-dark.css
similarity index 100%
rename from dist/lib/codemirror/theme/xq-dark.css
rename to app/lib/codemirror/theme/xq-dark.css
diff --git a/dist/lib/codemirror/theme/xq-light.css b/app/lib/codemirror/theme/xq-light.css
similarity index 100%
rename from dist/lib/codemirror/theme/xq-light.css
rename to app/lib/codemirror/theme/xq-light.css
diff --git a/dist/lib/codemirror/theme/yeti.css b/app/lib/codemirror/theme/yeti.css
similarity index 100%
rename from dist/lib/codemirror/theme/yeti.css
rename to app/lib/codemirror/theme/yeti.css
diff --git a/dist/lib/codemirror/theme/zenburn.css b/app/lib/codemirror/theme/zenburn.css
similarity index 100%
rename from dist/lib/codemirror/theme/zenburn.css
rename to app/lib/codemirror/theme/zenburn.css
diff --git a/dist/lib/coffee-script.js b/app/lib/coffee-script.js
similarity index 100%
rename from dist/lib/coffee-script.js
rename to app/lib/coffee-script.js
diff --git a/dist/lib/emmet.js b/app/lib/emmet.js
similarity index 100%
rename from dist/lib/emmet.js
rename to app/lib/emmet.js
diff --git a/dist/lib/esprima.js b/app/lib/esprima.js
similarity index 100%
rename from dist/lib/esprima.js
rename to app/lib/esprima.js
diff --git a/dist/lib/hint.min.css b/app/lib/hint.min.css
similarity index 100%
rename from dist/lib/hint.min.css
rename to app/lib/hint.min.css
diff --git a/dist/lib/inlet.css b/app/lib/inlet.css
similarity index 100%
rename from dist/lib/inlet.css
rename to app/lib/inlet.css
diff --git a/dist/lib/inlet.min.js b/app/lib/inlet.min.js
similarity index 100%
rename from dist/lib/inlet.min.js
rename to app/lib/inlet.min.js
diff --git a/dist/lib/jade.js b/app/lib/jade.js
similarity index 100%
rename from dist/lib/jade.js
rename to app/lib/jade.js
diff --git a/dist/lib/less.min.js b/app/lib/less.min.js
similarity index 100%
rename from dist/lib/less.min.js
rename to app/lib/less.min.js
diff --git a/dist/lib/marked.js b/app/lib/marked.js
similarity index 100%
rename from dist/lib/marked.js
rename to app/lib/marked.js
diff --git a/dist/lib/sass.js b/app/lib/sass.js
similarity index 100%
rename from dist/lib/sass.js
rename to app/lib/sass.js
diff --git a/dist/lib/sass.worker.js b/app/lib/sass.worker.js
similarity index 100%
rename from dist/lib/sass.worker.js
rename to app/lib/sass.worker.js
diff --git a/dist/lib/screenlog.js b/app/lib/screenlog.js
similarity index 100%
rename from dist/lib/screenlog.js
rename to app/lib/screenlog.js
diff --git a/dist/lib/split.js b/app/lib/split.js
similarity index 100%
rename from dist/lib/split.js
rename to app/lib/split.js
diff --git a/dist/lib/stylus.min.js b/app/lib/stylus.min.js
similarity index 100%
rename from dist/lib/stylus.min.js
rename to app/lib/stylus.min.js
diff --git a/dist/lib/typescript.js b/app/lib/typescript.js
similarity index 100%
rename from dist/lib/typescript.js
rename to app/lib/typescript.js
diff --git a/dist/script.js b/app/script.js
similarity index 96%
rename from dist/script.js
rename to app/script.js
index dc04790..1ee2d63 100644
--- a/dist/script.js
+++ b/app/script.js
@@ -1,3 +1,66 @@
+/**
+ * Copyright 2015 Google Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* eslint-env browser */
+'use strict';
+
+if ('serviceWorker' in navigator) {
+ // Delay registration until after the page has loaded, to ensure that our
+ // precaching requests don't degrade the first visit experience.
+ // See https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/registration
+ window.addEventListener('load', function() {
+ // Your service-worker.js *must* be located at the top-level directory relative to your site.
+ // It won't be able to control pages unless it's located at the same level or higher than them.
+ // *Don't* register service worker file in, e.g., a scripts/ sub-directory!
+ // See https://github.com/slightlyoff/ServiceWorker/issues/468
+ navigator.serviceWorker.register('service-worker.js').then(function(reg) {
+ // updatefound is fired if service-worker.js changes.
+ reg.onupdatefound = function() {
+ // The updatefound event implies that reg.installing is set; see
+ // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event
+ var installingWorker = reg.installing;
+
+ installingWorker.onstatechange = function() {
+ switch (installingWorker.state) {
+ case 'installed':
+ if (navigator.serviceWorker.controller) {
+ // At this point, the old content will have been purged and the fresh content will
+ // have been added to the cache.
+ // It's the perfect time to display a "New content is available; please refresh."
+ // message in the page's interface.
+ console.log('New or updated content is available.');
+ } else {
+ // At this point, everything has been precached.
+ // It's the perfect time to display a "Content is cached for offline use." message.
+ console.log('Content is now available offline!');
+ }
+ break;
+
+ case 'redundant':
+ console.error('The installing service worker became redundant.');
+ break;
+ }
+ };
+ };
+ }).catch(function(e) {
+ console.error('Error during service worker registration:', e);
+ });
+ });
+}
+
(function() {
window.DEBUG = document.cookie.indexOf('wmdebug') > -1;
@@ -695,7 +758,7 @@ globalConsoleContainerEl
};
const AUTO_SAVE_INTERVAL = 15000; // 15 seconds
- const BASE_PATH = chrome.extension ? '/' : '/dist/';
+ const BASE_PATH = chrome.extension ? '/' : '/app/';
var updateTimer,
updateDelay = 500,
diff --git a/dist/service-worker.js b/app/service-worker.js
similarity index 98%
rename from dist/service-worker.js
rename to app/service-worker.js
index 577f8c1..0cb5489 100644
--- a/dist/service-worker.js
+++ b/app/service-worker.js
@@ -37,7 +37,7 @@
/* eslint-disable indent, no-unused-vars, no-multiple-empty-lines, max-nested-callbacks, space-before-function-paren, quotes, comma-spacing */
'use strict';
-var precacheConfig = [["/FiraCode.ttf","fa1f8c8961adca519738d9518139579c"],["/changelog.html","7f40f4b9a97ca60826e7ad09e401d570"],["/icon-48.png","ca68956f464ed4fd2e09c66d5edaed5f"],["/index.html","54ae003d871b7687dea840895f509ec6"],["/lib/atomizer.browser.js","451f56bc105c5ad333445998b3c085a2"],["/lib/babel-polyfill.min.js","60977959048c0f5ef5aa66d6eac61eb3"],["/lib/babel.min.js","77a1a84bbc2661db874c738f9b3ba375"],["/lib/code-blast.js","48f8f054be45d3ad5054a7c7f87be0ff"],["/lib/codemirror/mode/coffeescript/coffeescript.js","dea87b9f4c669789c4760605d947f1a9"],["/lib/codemirror/mode/css/css.js","6c9ca32a78c120340e588ed3df734138"],["/lib/codemirror/mode/css/gss.html","9afa6e2f3a7daa6127a3f26e2e68005c"],["/lib/codemirror/mode/css/gss_test.js","e40c6fd9abdc6edc2b29e521bda726e1"],["/lib/codemirror/mode/css/less.html","a35ff50857d48bb2f4df8ac737f35d64"],["/lib/codemirror/mode/css/scss.html","8c96251f27727a9b23b45c41511e23a0"],["/lib/codemirror/mode/haml/haml.js","9abc1679e0f54dcdd62d2326ed6133f5"],["/lib/codemirror/mode/htmlembedded/htmlembedded.js","67f745ab3879bf7bc3029ac75ea3e181"],["/lib/codemirror/mode/htmlmixed/htmlmixed.js","2d6915b576f267e93f0e1cf72f31af37"],["/lib/codemirror/mode/javascript/javascript.js","3b2f1591e3175a24846cb182943f2a40"],["/lib/codemirror/mode/javascript/json-ld.html","a2a5069194b78b6b5523cace263cab06"],["/lib/codemirror/mode/javascript/typescript.html","76c2ffb883a133aa0fc5cc75ec0c56f5"],["/lib/codemirror/mode/jsx/jsx.js","7bee6944931c2cc6ccd99b50fca637db"],["/lib/codemirror/mode/markdown/markdown.js","30dd4984e2e929429d70cf5174b35c5d"],["/lib/codemirror/mode/meta.js","6e456ea5fd8920c85d5281bd1efecb4c"],["/lib/codemirror/mode/pug/pug.js","e988fd72c82f3b11836f6a06f7452436"],["/lib/codemirror/mode/sass/sass.js","bd31ac70e9a457abc2789c2b83a21984"],["/lib/codemirror/mode/stylus/stylus.js","81e2d281ecbb1dcf5c86857097ae60a7"],["/lib/codemirror/mode/xml/xml.js","80f64aaafa6af7844d14f32f3219bb26"],["/lib/codemirror/theme/3024-day.css","73c8f41583b4b71dbe1e5eac5c96f1a9"],["/lib/codemirror/theme/3024-night.css","745180be9a932f24c6c0dd4ebdf5a0ed"],["/lib/codemirror/theme/abcdef.css","8004cb71fd65e58bdfa64fdd55241315"],["/lib/codemirror/theme/ambiance-mobile.css","256f2dd130b80c6afaa40fddf700d12a"],["/lib/codemirror/theme/ambiance.css","6a200e1f3976929816cf3ac4675c810a"],["/lib/codemirror/theme/base16-dark.css","84b6347918411d58d7f9b65a7ee87f65"],["/lib/codemirror/theme/base16-light.css","037c7f3d16fe6d5ae2baa532e334172b"],["/lib/codemirror/theme/base2tone-meadow-dark.css","f9dd12e2e51fc1575c57f3e5edc2232f"],["/lib/codemirror/theme/bespin.css","cc414e4ec18bc89b3c79935b0e27fc20"],["/lib/codemirror/theme/blackboard.css","cf9366960ff65c8101793bc64fe13e88"],["/lib/codemirror/theme/cobalt.css","3488b576456693fd7ced2da0e10c8a16"],["/lib/codemirror/theme/colorforth.css","b2ee8d2296277fc2811a7473ee4e9977"],["/lib/codemirror/theme/dracula.css","e514d652ae86bfeaed34237b7d3afe44"],["/lib/codemirror/theme/duotone-dark.css","02ec891b23125aaf625d978a39fd24ca"],["/lib/codemirror/theme/duotone-light.css","608d11459665117d708651ce7f803fde"],["/lib/codemirror/theme/eclipse.css","194369eec66630cfaf662ce5f0a193be"],["/lib/codemirror/theme/elegant.css","0a4227e805a9d5f73a55dd248c1b052d"],["/lib/codemirror/theme/erlang-dark.css","b5543f5273c968449760ab0d6a2af6dc"],["/lib/codemirror/theme/hopscotch.css","b924ed31af30b1c68e5a01fc3c9b0553"],["/lib/codemirror/theme/icecoder.css","576d776abdf7e28ea9f84e2eb161a20d"],["/lib/codemirror/theme/isotope.css","7bb44bff5190c427de5ae750d6369633"],["/lib/codemirror/theme/lesser-dark.css","da2c896bff035cec86fa98b6dc13f7cc"],["/lib/codemirror/theme/liquibyte.css","9f37e7a4f3c02bec9bb735b78ed082d6"],["/lib/codemirror/theme/material.css","11e812a3688805b5c187a6e6852bafe1"],["/lib/codemirror/theme/mbo.css","55ff4bdd8a92c3dcbfd5421c532b3059"],["/lib/codemirror/theme/mdn-like.css","79f8dabc5593d01d27bc824b801f9f05"],["/lib/codemirror/theme/midnight.css","950e76dca6461ee1a2eac39f2d886613"],["/lib/codemirror/theme/monokai.css","31c75ebee6311d49c046ffbbb91028f4"],["/lib/codemirror/theme/neat.css","6b19894b9787c6791c250a95d0d4f8d6"],["/lib/codemirror/theme/neo.css","2886072b53043c167e6f8765606c705c"],["/lib/codemirror/theme/night.css","fe3ce7650a77e7e3887816dd7b6d880d"],["/lib/codemirror/theme/panda-syntax.css","acbf94261e43c1f29c2252eb445de032"],["/lib/codemirror/theme/paraiso-dark.css","3c24cee0dfac767713840b24e8359c99"],["/lib/codemirror/theme/paraiso-light.css","e245bbfd22b4f61efe526ff13903f19e"],["/lib/codemirror/theme/pastel-on-dark.css","48aae1a42733db57bd0a260ce0d83975"],["/lib/codemirror/theme/railscasts.css","a5e7682d89da46244e5464d9572e24d8"],["/lib/codemirror/theme/rubyblue.css","52bb601017a90bca522d66f6e82e73aa"],["/lib/codemirror/theme/seti.css","f71668880eb1625f420ceaad670436f0"],["/lib/codemirror/theme/solarized dark.css","4d05a166d713bb1ac24833061c1522d7"],["/lib/codemirror/theme/solarized light.css","4d05a166d713bb1ac24833061c1522d7"],["/lib/codemirror/theme/the-matrix.css","33c49ceeedafd0a08e712e465e3ad3ce"],["/lib/codemirror/theme/tomorrow-night-bright.css","777d36e1c5bbfeb3bf2ca8dd607eee93"],["/lib/codemirror/theme/tomorrow-night-eighties.css","5ceb5531fbe074d5190b55e8c725051e"],["/lib/codemirror/theme/ttcn.css","d2cb74dfae563a10e9c286357429ea8b"],["/lib/codemirror/theme/twilight.css","684040adf66ef89355cb7ebc6b54b00b"],["/lib/codemirror/theme/vibrant-ink.css","f10004836fb29cc9a08c987d3e18938a"],["/lib/codemirror/theme/xq-dark.css","60f162f0c4240e7352364d436b5598fa"],["/lib/codemirror/theme/xq-light.css","447e80da7fe8c5c2bcf39127200cead2"],["/lib/codemirror/theme/yeti.css","623dc805bc84dd6d25deef376593354e"],["/lib/codemirror/theme/zenburn.css","94ad50bf3d048ed92cc513cd901dc685"],["/lib/coffee-script.js","a43664b71b7b96e90046a605f6fa51a1"],["/lib/emmet.js","6fff639e42ec8c00f4f4ff30b52e60df"],["/lib/esprima.js","dfe041b0a8a5dda5c62ed8d2a1d3a666"],["/lib/hint.min.css","0dc51e410a460622949f927dfda1bc32"],["/lib/inlet.css","8242884724cfac965b53cf0a3d774c0b"],["/lib/inlet.min.js","7e389291ff8decc675a32e376e318660"],["/lib/jade.js","529e365c68f8d5efc4cea18be310bd76"],["/lib/less.min.js","6fd457ee80aaf9aa8758fe8a2345c970"],["/lib/marked.js","9f948a81f35613d44efa9322cbaf450d"],["/lib/sass.js","1263518af3f8b2090c9b08d195bd20d9"],["/lib/screenlog.js","dde029b72748bbc12532b309a717c2ca"],["/lib/split.js","40ac1c1fba622660e3750405b18ab0bf"],["/lib/stylus.min.js","58f6030903ab52f596fb407dcd3df34f"],["/lib/typescript.js","cc0882a3185037052e21fa06a38ef077"],["/script.js","8d2b754eb715f9e64670c2c71f900261"],["/style.css","c31fb0feec7101c4cb7d0e3606e974e7"],["/vendor.css","6ed94306315b8aaf789c53091c23bb4b"],["/vendor.js","43e7f646f4f0c6043e24a9e958fc7e29"]];
+var precacheConfig = [["/FiraCode.ttf","fa1f8c8961adca519738d9518139579c"],["/changelog.html","7f40f4b9a97ca60826e7ad09e401d570"],["/icon-48.png","ca68956f464ed4fd2e09c66d5edaed5f"],["/index.html","f3ec1c4674416008e2fc3f0ca10882a0"],["/lib/atomizer.browser.js","451f56bc105c5ad333445998b3c085a2"],["/lib/babel-polyfill.min.js","60977959048c0f5ef5aa66d6eac61eb3"],["/lib/babel.min.js","77a1a84bbc2661db874c738f9b3ba375"],["/lib/code-blast.js","48f8f054be45d3ad5054a7c7f87be0ff"],["/lib/codemirror/mode/coffeescript/coffeescript.js","dea87b9f4c669789c4760605d947f1a9"],["/lib/codemirror/mode/css/css.js","6c9ca32a78c120340e588ed3df734138"],["/lib/codemirror/mode/css/gss.html","9afa6e2f3a7daa6127a3f26e2e68005c"],["/lib/codemirror/mode/css/gss_test.js","e40c6fd9abdc6edc2b29e521bda726e1"],["/lib/codemirror/mode/css/less.html","a35ff50857d48bb2f4df8ac737f35d64"],["/lib/codemirror/mode/css/scss.html","8c96251f27727a9b23b45c41511e23a0"],["/lib/codemirror/mode/haml/haml.js","9abc1679e0f54dcdd62d2326ed6133f5"],["/lib/codemirror/mode/htmlembedded/htmlembedded.js","67f745ab3879bf7bc3029ac75ea3e181"],["/lib/codemirror/mode/htmlmixed/htmlmixed.js","2d6915b576f267e93f0e1cf72f31af37"],["/lib/codemirror/mode/javascript/javascript.js","3b2f1591e3175a24846cb182943f2a40"],["/lib/codemirror/mode/javascript/json-ld.html","a2a5069194b78b6b5523cace263cab06"],["/lib/codemirror/mode/javascript/typescript.html","76c2ffb883a133aa0fc5cc75ec0c56f5"],["/lib/codemirror/mode/jsx/jsx.js","7bee6944931c2cc6ccd99b50fca637db"],["/lib/codemirror/mode/markdown/markdown.js","30dd4984e2e929429d70cf5174b35c5d"],["/lib/codemirror/mode/meta.js","6e456ea5fd8920c85d5281bd1efecb4c"],["/lib/codemirror/mode/pug/pug.js","e988fd72c82f3b11836f6a06f7452436"],["/lib/codemirror/mode/sass/sass.js","bd31ac70e9a457abc2789c2b83a21984"],["/lib/codemirror/mode/stylus/stylus.js","81e2d281ecbb1dcf5c86857097ae60a7"],["/lib/codemirror/mode/xml/xml.js","80f64aaafa6af7844d14f32f3219bb26"],["/lib/codemirror/theme/3024-day.css","73c8f41583b4b71dbe1e5eac5c96f1a9"],["/lib/codemirror/theme/3024-night.css","745180be9a932f24c6c0dd4ebdf5a0ed"],["/lib/codemirror/theme/abcdef.css","8004cb71fd65e58bdfa64fdd55241315"],["/lib/codemirror/theme/ambiance-mobile.css","256f2dd130b80c6afaa40fddf700d12a"],["/lib/codemirror/theme/ambiance.css","6a200e1f3976929816cf3ac4675c810a"],["/lib/codemirror/theme/base16-dark.css","84b6347918411d58d7f9b65a7ee87f65"],["/lib/codemirror/theme/base16-light.css","037c7f3d16fe6d5ae2baa532e334172b"],["/lib/codemirror/theme/base2tone-meadow-dark.css","f9dd12e2e51fc1575c57f3e5edc2232f"],["/lib/codemirror/theme/bespin.css","cc414e4ec18bc89b3c79935b0e27fc20"],["/lib/codemirror/theme/blackboard.css","cf9366960ff65c8101793bc64fe13e88"],["/lib/codemirror/theme/cobalt.css","3488b576456693fd7ced2da0e10c8a16"],["/lib/codemirror/theme/colorforth.css","b2ee8d2296277fc2811a7473ee4e9977"],["/lib/codemirror/theme/dracula.css","e514d652ae86bfeaed34237b7d3afe44"],["/lib/codemirror/theme/duotone-dark.css","02ec891b23125aaf625d978a39fd24ca"],["/lib/codemirror/theme/duotone-light.css","608d11459665117d708651ce7f803fde"],["/lib/codemirror/theme/eclipse.css","194369eec66630cfaf662ce5f0a193be"],["/lib/codemirror/theme/elegant.css","0a4227e805a9d5f73a55dd248c1b052d"],["/lib/codemirror/theme/erlang-dark.css","b5543f5273c968449760ab0d6a2af6dc"],["/lib/codemirror/theme/hopscotch.css","b924ed31af30b1c68e5a01fc3c9b0553"],["/lib/codemirror/theme/icecoder.css","576d776abdf7e28ea9f84e2eb161a20d"],["/lib/codemirror/theme/isotope.css","7bb44bff5190c427de5ae750d6369633"],["/lib/codemirror/theme/lesser-dark.css","da2c896bff035cec86fa98b6dc13f7cc"],["/lib/codemirror/theme/liquibyte.css","9f37e7a4f3c02bec9bb735b78ed082d6"],["/lib/codemirror/theme/material.css","11e812a3688805b5c187a6e6852bafe1"],["/lib/codemirror/theme/mbo.css","55ff4bdd8a92c3dcbfd5421c532b3059"],["/lib/codemirror/theme/mdn-like.css","79f8dabc5593d01d27bc824b801f9f05"],["/lib/codemirror/theme/midnight.css","950e76dca6461ee1a2eac39f2d886613"],["/lib/codemirror/theme/monokai.css","31c75ebee6311d49c046ffbbb91028f4"],["/lib/codemirror/theme/neat.css","6b19894b9787c6791c250a95d0d4f8d6"],["/lib/codemirror/theme/neo.css","2886072b53043c167e6f8765606c705c"],["/lib/codemirror/theme/night.css","fe3ce7650a77e7e3887816dd7b6d880d"],["/lib/codemirror/theme/panda-syntax.css","acbf94261e43c1f29c2252eb445de032"],["/lib/codemirror/theme/paraiso-dark.css","3c24cee0dfac767713840b24e8359c99"],["/lib/codemirror/theme/paraiso-light.css","e245bbfd22b4f61efe526ff13903f19e"],["/lib/codemirror/theme/pastel-on-dark.css","48aae1a42733db57bd0a260ce0d83975"],["/lib/codemirror/theme/railscasts.css","a5e7682d89da46244e5464d9572e24d8"],["/lib/codemirror/theme/rubyblue.css","52bb601017a90bca522d66f6e82e73aa"],["/lib/codemirror/theme/seti.css","f71668880eb1625f420ceaad670436f0"],["/lib/codemirror/theme/solarized dark.css","4d05a166d713bb1ac24833061c1522d7"],["/lib/codemirror/theme/solarized light.css","4d05a166d713bb1ac24833061c1522d7"],["/lib/codemirror/theme/the-matrix.css","33c49ceeedafd0a08e712e465e3ad3ce"],["/lib/codemirror/theme/tomorrow-night-bright.css","777d36e1c5bbfeb3bf2ca8dd607eee93"],["/lib/codemirror/theme/tomorrow-night-eighties.css","5ceb5531fbe074d5190b55e8c725051e"],["/lib/codemirror/theme/ttcn.css","d2cb74dfae563a10e9c286357429ea8b"],["/lib/codemirror/theme/twilight.css","684040adf66ef89355cb7ebc6b54b00b"],["/lib/codemirror/theme/vibrant-ink.css","f10004836fb29cc9a08c987d3e18938a"],["/lib/codemirror/theme/xq-dark.css","60f162f0c4240e7352364d436b5598fa"],["/lib/codemirror/theme/xq-light.css","447e80da7fe8c5c2bcf39127200cead2"],["/lib/codemirror/theme/yeti.css","623dc805bc84dd6d25deef376593354e"],["/lib/codemirror/theme/zenburn.css","94ad50bf3d048ed92cc513cd901dc685"],["/lib/coffee-script.js","a43664b71b7b96e90046a605f6fa51a1"],["/lib/emmet.js","6fff639e42ec8c00f4f4ff30b52e60df"],["/lib/esprima.js","dfe041b0a8a5dda5c62ed8d2a1d3a666"],["/lib/hint.min.css","0dc51e410a460622949f927dfda1bc32"],["/lib/inlet.css","8242884724cfac965b53cf0a3d774c0b"],["/lib/inlet.min.js","7e389291ff8decc675a32e376e318660"],["/lib/jade.js","529e365c68f8d5efc4cea18be310bd76"],["/lib/less.min.js","6fd457ee80aaf9aa8758fe8a2345c970"],["/lib/marked.js","9f948a81f35613d44efa9322cbaf450d"],["/lib/sass.js","1263518af3f8b2090c9b08d195bd20d9"],["/lib/screenlog.js","dde029b72748bbc12532b309a717c2ca"],["/lib/split.js","40ac1c1fba622660e3750405b18ab0bf"],["/lib/stylus.min.js","58f6030903ab52f596fb407dcd3df34f"],["/lib/typescript.js","cc0882a3185037052e21fa06a38ef077"],["/script.js","610ad5d72274eef82c8b259d4d93bc31"],["/style.css","c31fb0feec7101c4cb7d0e3606e974e7"],["/vendor.css","6ed94306315b8aaf789c53091c23bb4b"],["/vendor.js","43e7f646f4f0c6043e24a9e958fc7e29"]];
var cacheName = 'sw-precache-v3--' + (self.registration ? self.registration.scope : '');
diff --git a/dist/style.css b/app/style.css
similarity index 100%
rename from dist/style.css
rename to app/style.css
diff --git a/dist/vendor.css b/app/vendor.css
similarity index 100%
rename from dist/vendor.css
rename to app/vendor.css
diff --git a/dist/vendor.js b/app/vendor.js
similarity index 100%
rename from dist/vendor.js
rename to app/vendor.js