소스 검색

wipfix: fix variable shadowing problem

rugk 5 달 전
부모
커밋
8bca112251
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      js/privatebin.js

+ 6 - 6
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());
                 });
             }