Explorar o código

style: do not use ? yet as we have no support for it/ESLint cmplains

rugk hai 1 semana
pai
achega
526e795b03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/test/PasteStatus.js

+ 1 - 1
js/test/PasteStatus.js

@@ -72,7 +72,7 @@ describe('PasteStatus', function () {
                 PrivateBin.PasteStatus.init();
                 PrivateBin.PasteStatus.createPasteNotification('https://example.com/', 'https://example.com/delete');
 
-                const hotkey = document.querySelector('#copyhint kbd')?.textContent;
+                const hotkey = document.querySelector('#copyhint kbd').textContent;
 
                 assert.strictEqual(hotkey, 'Cmd');
             }