Add back about blank, start on blob
This commit is contained in:
parent
4d4a30f179
commit
3d3693f40f
2 changed files with 20 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
settings.proxy();
|
settings.proxy();
|
||||||
await sw.wispServer();
|
await sw.wispServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
||||||
document.addEventListener('astro:after-swap', async () => {
|
document.addEventListener('astro:after-swap', async () => {
|
||||||
//const settings = await Settings.getInstance();
|
//const settings = await Settings.getInstance();
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,23 @@ import Button from "@components/ui/Button.astro";
|
||||||
</div>
|
</div>
|
||||||
</SettingsLayout>
|
</SettingsLayout>
|
||||||
<script>
|
<script>
|
||||||
|
import { Settings } from "@utils/settings.ts";
|
||||||
|
import { StoreManager } from "@utils/storage";
|
||||||
|
import { SW } from "@utils/proxy.ts";
|
||||||
|
|
||||||
|
const handleAb = async (settings: Settings, sw: SW, storage: StoreManager<"radius||settings">) => {
|
||||||
|
const input = document.getElementById("aboutBlankCloaker") as HTMLInputElement;
|
||||||
|
const button = document.getElementById("aboutBlankLaunch") as HTMLButtonElement;
|
||||||
|
button.addEventListener("click", () => {
|
||||||
|
const url = sw.search(input.value, storage.getVal('searchEngine'));
|
||||||
|
settings.aboutBlank(url);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
document.addEventListener('astro:page-load', async () => {
|
||||||
|
const settings = await Settings.getInstance();
|
||||||
|
const sw = SW.getInstance().next().value!;
|
||||||
|
const storageManager = new StoreManager<"radius||settings">("radius||settings");
|
||||||
|
await handleAb(settings, sw, storageManager);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue