mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 13:44:47 +00:00
8 lines
235 B
TypeScript
8 lines
235 B
TypeScript
import { Notification } from "electron";
|
|
|
|
module.exports = (socket: SocketIO.Server) => {
|
|
socket.on('createNotification', (options) => {
|
|
const notification = new Notification(options);
|
|
notification.show();
|
|
});
|
|
} |