From c099f7950ef0e2f77ac26d20b509787ec1950cde Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Sun, 26 Nov 2017 21:31:48 +0100 Subject: [PATCH] Use the shorthand when I have it. --- ux.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ux.js b/ux.js index d3ed5d7..4bed27b 100644 --- a/ux.js +++ b/ux.js @@ -3,13 +3,13 @@ f.insertAdjacentHTML( 'afterbegin', '

?

') - document.querySelector('[href="#help"]').onclick = e => { - if (document.getElementById('help') == null) { + d.querySelector('[href="#help"]').onclick = e => { + if (d.getElementById('help') == null) { f.insertAdjacentHTML( 'beforebegin', '

Key bindings

' + [].map.call( - document.querySelectorAll('[accesskey]'), + d.querySelectorAll('[accesskey]'), e => e.accessKeyLabel + ": " + (e.title || e.innerText)).join('
') + '
'); }