Disable spellcheck by default on desktop

This commit is contained in:
Mo Bitar
2019-04-11 10:28:17 -05:00
parent 372c6c3a7a
commit 2ae804c0f4

View File

@@ -548,7 +548,11 @@ angular.module('app')
this.loadPreferences = function() {
this.monospaceFont = authManager.getUserPrefValue("monospaceFont", "monospace");
this.spellcheck = authManager.getUserPrefValue("spellcheck", true);
// On desktop application, disable spellcheck by default, as it is not performant.
let defaultSpellcheckStatus = isDesktopApplication() ? false : true;
this.spellcheck = authManager.getUserPrefValue("spellcheck", defaultSpellcheckStatus);
this.marginResizersEnabled = authManager.getUserPrefValue("marginResizersEnabled", true);
if(!document.getElementById("editor-content")) {