Skip to content

Commit

Permalink
fix track changes checkbox?
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 31, 2025
1 parent 91bb679 commit f7deada
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const defaultSettings = {
lineNumbers: false,
strudelAutocomplete: false,
closeBrackets: true,
trackRemoteCursors: false,
trackRemoteCursors: true,
welcomeMessage3: true,
pastingMode: false,
fontFamily: 'monospace',
Expand Down Expand Up @@ -108,13 +108,12 @@ lineWrappingCheckbox?.addEventListener('change', setSettingsFromDom);
lineNumbersCheckbox?.addEventListener('change', setSettingsFromDom);
strudelAutocompleteCheckbox?.addEventListener('change', setSettingsFromDom);
closeBracketsCheckbox?.addEventListener('change', setSettingsFromDom);
trackRemoteCursorsCheckbox?.addEventListener('change', (e) => {
nudelConfirm(`This only makes sense in boxed mode.. It also requires a reload. Are you sure?`).then(() => {
if (confirmed) {
setSettingsFromDom();
window.location.reload();
}
});
trackRemoteCursorsCheckbox?.addEventListener('change', async (e) => {
const confirmed = nudelConfirm(`This only makes sense in boxed mode.. It also requires a reload. Are you sure?`);
if (confirmed) {
setSettingsFromDom();
window.location.reload();
}
});
pastingModeCheckbox?.addEventListener('change', setSettingsFromDom);
fontFamilySelect?.addEventListener('change', setSettingsFromDom);
Expand Down

0 comments on commit f7deada

Please sign in to comment.