Skip to content

Commit

Permalink
Fix the problem where the background theme is not immediately changed…
Browse files Browse the repository at this point in the history
… on Safari.
  • Loading branch information
okaxaki committed Nov 25, 2023
1 parent 7e2e068 commit f9f66a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.7.1 (2023/11/25)
- Fix the problem where the background theme is not immediately changed on Safari.

# 1.7.0 (2023/11/24)
- Fix the problem where finite-length music is unexpectedly fading on replay.
- Enhance syntax highlighting.
Expand Down
3 changes: 2 additions & 1 deletion public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ function openSettings() {
function onThemeChange(event) {
const id = event.srcElement.value;
editor.setTheme(_themeIdToPath(id));
// Workaround for Safari: focus to apply background color.
editor.focus();
saveEditorOptions();
}

Expand All @@ -811,7 +813,6 @@ function onFontSizeChange(event) {
function onWrapChange(event) {
const wrap = event.srcElement.value;
editor.setOption("wrap", wrap);
console.log(editor.getOption("wrap"));
saveEditorOptions();
}

Expand Down

0 comments on commit f9f66a2

Please sign in to comment.