paricafe/src/web/app/desktop/scripts/open-window.js
syuilo c83302bb80 ✌️
2017-02-18 17:39:15 +09:00

8 lines
209 B
JavaScript

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];
}
});