status/gui/modules/webservicedashboard.svelte
2022-08-29 12:22:17 +02:00

17 lines
333 B
Svelte

<script>
import { createEventDispatcher, onMount } from 'svelte';
const dispatch = createEventDispatcher();
onMount(() => {
let url = window.location.href;
if (!url.endsWith('/')) {
url += '/';
}
url += 'status/dashboard';
window.open(url, '_blank').focus();
dispatch('close');
});
</script>