You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			508 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			14 lines
		
	
	
		
			508 B
		
	
	
	
		
			TypeScript
		
	
| import * as OS from '../OS';
 | |
| 
 | |
| const MIN_WINDOWS_VERSION = '8.0.0';
 | |
| 
 | |
| export const isAudioNotificationSupported = () => OS.isWindows(MIN_WINDOWS_VERSION) || OS.isMacOS();
 | |
| 
 | |
| // Using `Notification::tag` has a bug on Windows 7:
 | |
| // https://github.com/electron/electron/issues/11189
 | |
| export const isNotificationGroupingSupported = () =>
 | |
|   !OS.isWindows() || OS.isWindows(MIN_WINDOWS_VERSION);
 | |
| 
 | |
| // the "hide menu bar" option is specific to Windows and Linux
 | |
| export const isHideMenuBarSupported = () => !OS.isMacOS();
 |