aboutsummaryrefslogtreecommitdiff
path: root/editor/example.html
diff options
context:
space:
mode:
Diffstat (limited to 'editor/example.html')
-rw-r--r--editor/example.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/example.html b/editor/example.html
index 344bd1b..7321386 100644
--- a/editor/example.html
+++ b/editor/example.html
@@ -9,6 +9,7 @@
<script>
var exports = {}
+ let wuiEditor = null
</script>
<script src="editor.js"></script>
<script>
@@ -19,9 +20,9 @@
OpenFile: doOpenFile,
}
- let editor = new Editor(opts)
+ wuiEditor = new Editor(opts)
- editor.OpenFile("/test.aww")
+ wuiEditor.OpenFile("/test.aww")
}
function doOpenFile(path) {