mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
const binding = process._linkedBinding('electron_browser_notification');
|
|
|
|
const ElectronNotification = binding.Notification;
|
|
ElectronNotification.isSupported = binding.isSupported;
|
|
|
|
if (process.platform === 'win32' && binding.handleActivation) {
|
|
ElectronNotification.handleActivation = binding.handleActivation;
|
|
}
|
|
|
|
export default ElectronNotification;
|