Skip to content

Commit cef8abc

Browse files
committed
fix: self link parser
Signed-off-by: Innei <[email protected]>
1 parent fefdbee commit cef8abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/link-parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const isSelfArticleUrl = (url: URL) => {
8282

8383
if (isDev && url.hostname === 'innei.in') return true
8484
return (
85-
(url.hostname === location.hostname || webHost === location.hostname) &&
85+
(url.hostname === location.hostname || webHost === url.hostname) &&
8686
['/posts/', '/notes/'].some((path) => url.pathname.startsWith(path))
8787
)
8888
}

0 commit comments

Comments
 (0)