10 lines
354 B
TypeScript
10 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;
|