mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
✌️
This commit is contained in:
parent
5aa431b05c
commit
cccd31c5bb
@ -9,7 +9,7 @@ module.exports = (me) ~>
|
|||||||
require './scripts/open-window'
|
require './scripts/open-window'
|
||||||
|
|
||||||
riot.mixin \notify do
|
riot.mixin \notify do
|
||||||
notify: require './scripts/notify.ls'
|
notify: require './scripts/notify'
|
||||||
|
|
||||||
dialog = require './scripts/dialog.ls'
|
dialog = require './scripts/dialog.ls'
|
||||||
|
|
||||||
|
8
src/web/app/desktop/scripts/notify.js
Normal file
8
src/web/app/desktop/scripts/notify.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
const riot = require('riot');
|
||||||
|
|
||||||
|
module.exports = message => {
|
||||||
|
const notification = document.body.appendChild(document.createElement('mk-ui-notification'));
|
||||||
|
riot.mount(notification, {
|
||||||
|
message: message
|
||||||
|
});
|
||||||
|
};
|
@ -1,6 +0,0 @@
|
|||||||
riot = require \riot
|
|
||||||
|
|
||||||
module.exports = (message) ~>
|
|
||||||
notification = document.body.append-child document.create-element \mk-ui-notification
|
|
||||||
riot.mount notification, do
|
|
||||||
message: message
|
|
Loading…
Reference in New Issue
Block a user