diff options
author | 2018-06-13 16:43:42 +0100 | |
---|---|---|
committer | 2018-06-13 16:43:42 +0100 | |
commit | be2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch) | |
tree | 962d5e52f4bb57c397c068ae6a11b57952cfc459 /js/src/errors.js | |
parent | [DB] Attempt reconnection if current connection was lost (diff) |
Compile as much JS with Gulp as possible
This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded.
There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js:
* Ace Editor
* Flatpickr
* Font-Awesome
Diffstat (limited to '')
-rw-r--r-- | js/src/errors.js (renamed from static/js/500.js) | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/js/500.js b/js/src/errors.js index 7effe502..492285d4 100644 --- a/static/js/500.js +++ b/js/src/errors.js @@ -1,6 +1,8 @@ "use strict"; -window.onload = function () { +/* exported error_typewriter */ + +function error_typewriter() { const app = document.getElementById("error"); const typewriter = new Typewriter(app, { @@ -44,4 +46,4 @@ window.onload = function () { .typeString("response.text\n") .appendText(`${ window._ErrorMsg }\n>>> `) .start(); -}; +} |