hippofish/src/web/app/desktop/scripts/open-window.js

9 lines
209 B
JavaScript
Raw Normal View History

2017-02-18 09:39:15 +01:00
const riot = require('riot');
riot.mixin('open-window', {
openWindow: (name, opts) => {
const window = document.body.appendChild(document.createElement(name));
return riot.mount(window, opts)[0];
}
});