mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
✌️
This commit is contained in:
parent
a391bffae7
commit
5aa431b05c
@ -6,7 +6,7 @@ module.exports = (me) ~>
|
|||||||
|
|
||||||
require './scripts/user-preview'
|
require './scripts/user-preview'
|
||||||
|
|
||||||
require './scripts/open-window.ls'
|
require './scripts/open-window'
|
||||||
|
|
||||||
riot.mixin \notify do
|
riot.mixin \notify do
|
||||||
notify: require './scripts/notify.ls'
|
notify: require './scripts/notify.ls'
|
||||||
|
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];
|
||||||
|
}
|
||||||
|
});
|
@ -1,8 +0,0 @@
|
|||||||
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
|
|
Loading…
Reference in New Issue
Block a user