mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-25 13:57:11 +08:00
12 lines
183 B
JavaScript
12 lines
183 B
JavaScript
module.exports = {
|
|
system({title, body}, cb) {
|
|
const myNotification = new Notification(title, {
|
|
body
|
|
});
|
|
|
|
myNotification.onclick = () => {
|
|
cb();
|
|
}
|
|
}
|
|
}
|