auto update position in url by default

This commit is contained in:
liamcottle
2024-08-24 15:02:45 +12:00
parent 001ef68a1a
commit 887ef0ffa9

View File

@ -1699,7 +1699,9 @@
} }
function getConfigAutoUpdatePositionInUrl() { 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) { function setConfigAutoUpdatePositionInUrl(value) {