[bugfix] correct import of @rails/ujs / fix lint issues (#92)

Details: https://github.com/rails/rails/issues/49768
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/92
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
This commit is contained in:
Zoë Bijl
2025-10-10 10:54:11 +02:00
committed by Zoë Bijl
parent 4b4a9f981f
commit 496fd5987e
10 changed files with 5155 additions and 4873 deletions
@@ -32,7 +32,7 @@ function isNodeLinkHashtag(element: Node): element is HTMLLinkElement {
return (
element instanceof HTMLAnchorElement &&
// it may be a <a> starting with a hashtag
(element.textContent?.[0] === '#' ||
(element.textContent.startsWith('#') ||
// or a #<a>
element.previousSibling?.textContent?.[
element.previousSibling.textContent.length - 1