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

9 lines
209 B
JavaScript
Raw Normal View History

2017-02-18 02:39:15 -06: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];
}
});