mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Toggle spell checker in the session rather than the webPreferences.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -71,13 +71,7 @@ export default class WebView {
 | 
			
		||||
          ? html``
 | 
			
		||||
          : html`preload="${props.preload}"`}
 | 
			
		||||
        partition="persist:webviewsession"
 | 
			
		||||
        webpreferences="
 | 
			
		||||
          contextIsolation,
 | 
			
		||||
          spellcheck=${Boolean(
 | 
			
		||||
          ConfigUtil.getConfigItem("enableSpellchecker", true),
 | 
			
		||||
        )},
 | 
			
		||||
          worldSafeExecuteJavaScript=true
 | 
			
		||||
        "
 | 
			
		||||
        webpreferences="contextIsolation, worldSafeExecuteJavaScript=true"
 | 
			
		||||
      >
 | 
			
		||||
      </webview>
 | 
			
		||||
    `;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user