Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c63f1d2

Browse files
kerwin612silverwind
andauthored
Update web_src/js/features/repo-code.ts
Co-authored-by: silverwind <me@silverwind.io> Signed-off-by: Kerwin Bryant <kerwin612@qq.com>
1 parent d7ccf38 commit c63f1d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎web_src/js/features/repo-code.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ function showLineButton() {
117117

118118
// Hide menu when clicking menu items
119119
menu.addEventListener('click', () => {
120-
const tippyInstance = btn._tippy;
121-
if (tippyInstance) {
122-
tippyInstance.hide();
123-
}
120+
btn._tippy?.hide();
124121
});
125122
}
126123

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /