mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-08-03 21:13:45 +00:00
wipfix: fix variable shadowing problem
This commit is contained in:
parent
5b008ac5d9
commit
8bca112251
1 changed files with 6 additions and 6 deletions
|
|
@ -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());
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue