Skip to content

Commit

Permalink
reload for real
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 17, 2025
1 parent 7c2e0f5 commit b8ff16f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ export function applySettingsToNudel(settings = getSettings()) {

if (appliedSettings && isSettingChanged('vimMode', { previous: appliedSettings, next: settings })) {
const pingPong = settings.vimMode ? 'enable' : 'disable';
nudelConfirm(`Do you want to refresh the page to ${pingPong} vim mode immediately?`);
nudelConfirm(`Do you want to refresh the page to ${pingPong} vim mode immediately?`).then((confirmed) => {
if (confirmed) {
window.location.reload();
}
});
}

pastamirror.updateExtensions(settings, appliedSettings);
Expand Down

0 comments on commit b8ff16f

Please sign in to comment.