19 lines
474 B
Plaintext
19 lines
474 B
Plaintext
<script>
|
|
import { Settings } from "@utils/settings.ts";
|
|
import { SW } from "@utils/proxy.ts";
|
|
const settings = new Settings();
|
|
const sw = new SW();
|
|
|
|
const init = async () => {
|
|
settings.searchEngine();
|
|
settings.proxy();
|
|
await sw.wispServer();
|
|
}
|
|
|
|
init();
|
|
document.addEventListener('astro:after-swap', async () => {
|
|
//const settings = await Settings.getInstance();
|
|
settings.theme();
|
|
});
|
|
</script>
|