mirror of
https://github.com/smartyellow/status.git
synced 2025-01-19 05:57:58 +00:00
15 lines
319 B
Svelte
15 lines
319 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>
|