From dc6a741ea440429733e01fee0a98817b42b54e71 Mon Sep 17 00:00:00 2001 From: David Evans Date: Sun, 10 Dec 2017 15:52:10 +0000 Subject: [PATCH] Add editor-dev.htm with no CDN requirements to help offline development --- editor-dev.htm | 82 +++++++++++++++++++++++++++++++++++++++++++++++ scripts/editor.js | 2 +- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 editor-dev.htm diff --git a/editor-dev.htm b/editor-dev.htm new file mode 100644 index 0000000..8e4c067 --- /dev/null +++ b/editor-dev.htm @@ -0,0 +1,82 @@ + + + + + +Sequence Diagram + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Sequence Diagram Online Editor

+

Loading…

+
+ + + diff --git a/scripts/editor.js b/scripts/editor.js index a485b3f..92e99c2 100644 --- a/scripts/editor.js +++ b/scripts/editor.js @@ -4,7 +4,7 @@ requirejs.config(window.getRequirejsCDN()); // Set to false during development to avoid need to minify sources - const release = true; + const release = !window.location.href.includes('editor-dev.htm'); requirejs([ 'interface/Interface',