Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzap authored and pauloxnet committed Feb 24, 2025
1 parent 157e8b9 commit 7fb6534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangoproject/static/js/djangoproject.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ document.querySelector('.menu-button').addEventListener('click', function () {
return;
}

const initial_value = el.getAttribute('placeholder');
const original_placeholder = el.getAttribute('placeholder');
const is_mac = navigator.userAgent.indexOf('Mac') !== -1;
const new_value = `${initial_value} (${is_mac ? '⌘' : 'Ctrl'} + K)`;
const new_value = `${original_placeholder} (${is_mac ? '⌘' : 'Ctrl'} + K)`;

el.setAttribute('placeholder', new_value);
})();
Expand Down

0 comments on commit 7fb6534

Please sign in to comment.