mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	node-mac-notifier no longer builds on macOS with Electron 11 (error: no template named 'remove_cv_t' in namespace 'std'). It was previously implicated in crashes on macOS (#1016). And we no longer have any macOS developers that seem to be maintaining this feature (e.g. #1022 is stalled). Signed-off-by: Anders Kaseorg <anders@zulip.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			473 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			473 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import {remote} from 'electron';
 | 
						|
 | 
						|
// Do not change this
 | 
						|
export const appId = 'org.zulip.zulip-electron';
 | 
						|
 | 
						|
const currentWindow = remote.getCurrentWindow();
 | 
						|
const webContents = remote.getCurrentWebContents();
 | 
						|
const webContentsId = webContents.id;
 | 
						|
 | 
						|
// This function will focus the server that sent
 | 
						|
// the notification. Main function implemented in main.js
 | 
						|
export function focusCurrentServer(): void {
 | 
						|
	currentWindow.webContents.send('focus-webview-with-id', webContentsId);
 | 
						|
}
 |