diff options
author | Sheogorath | 2020-06-08 16:27:56 +0200 |
---|---|---|
committer | Sheogorath | 2020-06-08 16:27:56 +0200 |
commit | 7e02a92c457c8879f1d69c4699ad06604d4e1b65 (patch) | |
tree | 8093fd5dec0822274077f93d5ec229b00baf993e /public/js/lib/editor | |
parent | 49de5f5bd6239354d98b424804951974588ab25e (diff) | |
parent | 2215da9431bf4a3a1f921a7542887525048d0c1c (diff) |
Merge branch 'pr-upstream-389'
Diffstat (limited to '')
-rw-r--r-- | public/js/lib/editor/index.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js index 8553caa9..07ef58a1 100644 --- a/public/js/lib/editor/index.js +++ b/public/js/lib/editor/index.js @@ -303,12 +303,14 @@ export default class Editor { const setType = () => { if (this.editor.getOption('indentWithTabs')) { Cookies.set('indent_type', 'tab', { - expires: 365 + expires: 365, + sameSite: 'strict' }) type.text('Tab Size:') } else { Cookies.set('indent_type', 'space', { - expires: 365 + expires: 365, + sameSite: 'strict' }) type.text('Spaces:') } @@ -319,11 +321,13 @@ export default class Editor { var unit = this.editor.getOption('indentUnit') if (this.editor.getOption('indentWithTabs')) { Cookies.set('tab_size', unit, { - expires: 365 + expires: 365, + sameSite: 'strict' }) } else { Cookies.set('space_units', unit, { - expires: 365 + expires: 365, + sameSite: 'strict' }) } widthLabel.text(unit) @@ -391,7 +395,8 @@ export default class Editor { const setKeymapLabel = () => { var keymap = this.editor.getOption('keyMap') Cookies.set('keymap', keymap, { - expires: 365 + expires: 365, + sameSite: 'strict' }) label.text(keymap) this.restoreOverrideEditorKeymap() @@ -439,7 +444,8 @@ export default class Editor { } this.editor.setOption('theme', theme) Cookies.set('theme', theme, { - expires: 365 + expires: 365, + sameSite: 'strict' }) checkTheme() @@ -484,7 +490,8 @@ export default class Editor { this.editor.setOption('mode', mode) } Cookies.set('spellcheck', mode === 'spell-checker', { - expires: 365 + expires: 365, + sameSite: 'strict' }) checkSpellcheck() @@ -529,7 +536,8 @@ export default class Editor { ) if (overrideBrowserKeymap.is(':checked')) { Cookies.set('preferences-override-browser-keymap', true, { - expires: 365 + expires: 365, + sameSite: 'strict' }) this.restoreOverrideEditorKeymap() } else { |