fix: lang change
Lint / Oxlint (push) Successful in 52s
Lint / TypeScript (push) Successful in 55s
Lint / ESLint (push) Successful in 58s
Deploy / Build (push) Successful in 1m26s
Deploy / Deploy to Stapler (push) Successful in 2m34s

This commit is contained in:
2026-06-15 21:37:48 +02:00
parent d56d3ad496
commit f704836f31
+4 -7
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeMount, watch } from "vue";
import { ref, onMounted, onBeforeMount } from "vue";
import { WhoIs } from "./lib/whois";
import { DomainFactory } from "./lib/factory";
@@ -73,17 +73,14 @@ onMounted(() => {
setTimeout(() => {
visible.value = true;
});
});
watch(
() => document.location.hash,
() => {
setInterval(() => {
const newLang = getLang();
if (newLang !== lang.value) {
lang.value = newLang;
newDomain();
}
},
);
}, 100);
});
</script>
<template>