ユーザTLの余白をクリックして上部に戻れるように

This commit is contained in:
kakkokari-gtyih
2024-06-03 19:38:41 +09:00
parent 2c0d72fc1b
commit 322f132da1
5 changed files with 45 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function isLink(el: HTMLElement) {
if (el.tagName === 'A') return true;
if (el.parentElement) {
return isLink(el.parentElement);
}
return false;
};