From 8bca112251b49f77af52846ae88dc52cbc1beace Mon Sep 17 00:00:00 2001 From: rugk Date: Sun, 1 Mar 2026 14:29:38 +0000 Subject: [PATCH] wipfix: fix variable shadowing problem --- js/privatebin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 2459910c..0e835dd4 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4799,15 +4799,15 @@ window.PrivateBin = (function() { } // bootstrap5 & page drop downs - const pasteExpiration = document.getElementById('pasteExpiration'); - if (pasteExpiration) { - pasteExpiration.addEventListener('change', function() { + const pasteExpirationSelect = document.getElementById('pasteExpiration'); + if (pasteExpirationSelect) { + pasteExpirationSelect.addEventListener('change', function() { pasteExpiration = Model.getExpirationDefault(); }); } - const pasteFormatter = document.getElementById('pasteFormatter'); - if (pasteFormatter) { - pasteFormatter.addEventListener('change', function() { + const pasteFormatterSelect = document.getElementById('pasteFormatter'); + if (pasteFormatterSelect) { + pasteFormatterSelect.addEventListener('change', function() { PasteViewer.setFormat(Model.getFormatDefault()); }); }