mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 12:03:39 +00:00 
			
		
		
		
	Explicit focus webview on macOS alone.
This commit is contained in:
		| @@ -57,6 +57,7 @@ function createMainWindow() { | ||||
| 		icon: iconPath(), | ||||
| 		minWidth: 600, | ||||
| 		minHeight: 500, | ||||
| 		titleBarStyle: 'hidden', | ||||
| 		webPreferences: { | ||||
| 			plugins: true, | ||||
| 			allowDisplayingInsecureContent: true, | ||||
|   | ||||
| @@ -104,7 +104,7 @@ class WebView extends BaseComponent { | ||||
| 		// The bug is introduced from Electron and this is a tempory fix. | ||||
| 		// See https://github.com/zulip/zulip-electron/issues/216 | ||||
| 		const osName = SystemUtil.getOS(); | ||||
| 		if (osName === 'Mac' || osName === 'Linux') { | ||||
| 		if (osName === 'Mac') { | ||||
| 			this.$el.focus(); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user