From 887ef0ffa916204439dcf8c3e03b27257666911f Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sat, 24 Aug 2024 15:02:45 +1200 Subject: [PATCH] auto update position in url by default --- src/public/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/index.html b/src/public/index.html index e08067c..4c337a5 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -1699,7 +1699,9 @@ } 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) {