diff options
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,7 +3,8 @@ function setupEvents() { t.addEventListener("click", _ => { const link = t.getAttribute("data-href") if (link === null || link === "") return - window.open(link) + if (!link.startsWith(window.location.origin) && link.startsWith("https://")) window.open(link) + else changePage(link) }) }) |
