summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts/open-window.ls
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/desktop/scripts/open-window.ls')
-rw-r--r--src/web/app/desktop/scripts/open-window.ls8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/app/desktop/scripts/open-window.ls b/src/web/app/desktop/scripts/open-window.ls
new file mode 100644
index 0000000000..4388272ecf
--- /dev/null
+++ b/src/web/app/desktop/scripts/open-window.ls
@@ -0,0 +1,8 @@
+riot = require \riot
+
+function open(name, opts)
+ window = document.body.append-child document.create-element name
+ riot.mount window, opts
+
+riot.mixin \open-window do
+ open-window: open