From 909c2040daddfaa1b894cf7a28c409440571e015 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sun, 5 May 2024 21:32:39 +0200 Subject: [PATCH] hud-pinning.js: fix inappropriate unpinning on image posting --- js/hud-pinning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/hud-pinning.js b/js/hud-pinning.js index 15f8a157..01d05596 100644 --- a/js/hud-pinning.js +++ b/js/hud-pinning.js @@ -42,7 +42,7 @@ $(document).ready(function() { // Reload on new post: allows it to work with auto-reload.js etc. $(document).on('new_post', function(e, post) { - setHudPinning(localStorage.hud_pinning === 'true'); + setHudPinning(localStorage.hud_pinning !== 'false'); }); // Enforce the setting on loading.