Skip to content

Commit 6483730

Browse files
Update web_src/js/features/repo-unicode-escape.ts
Co-authored-by: silverwind <[email protected]>
1 parent 4719b5d commit 6483730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-unicode-escape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function initUnicodeEscapeButton() {
99
const container = unicodeContentSelector ?
1010
document.querySelector(unicodeContentSelector) :
1111
btn.closest('.file-content, .non-diff-file-content');
12-
const fileView = container.querySelector('.file-code, .file-view') || container;
12+
const fileView = container.querySelector('.file-code, .file-view') ?? container;
1313
if (btn.matches('.escape-button')) {
1414
fileView.classList.add('unicode-escaped');
1515
hideElem(btn);

0 commit comments

Comments
 (0)