mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 14:35:38 +02:00
✌️
This commit is contained in:
8
src/web/app/desktop/scripts/open-window.js
Normal file
8
src/web/app/desktop/scripts/open-window.js
Normal file
@@ -0,0 +1,8 @@
|
||||
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];
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user