Skip to content

Commit

Permalink
auto update position in url by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle authored and KomelT committed Aug 24, 2024
1 parent 3b5ffff commit 2a63e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2620,9 +2620,11 @@ <h2 class="font-bold">
}

function getConfigAutoUpdatePositionInUrl() {
return (
localStorage.getItem("config_auto_update_position_in_url") === "true"
// use user preference, or enable by default
const value = localStorage.getItem(
"config_auto_update_position_in_url"
);
return value === "true" || value == null;
}

function setConfigAutoUpdatePositionInUrl(value) {
Expand Down

0 comments on commit 2a63e0d

Please sign in to comment.