-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathArrayError.svelte
More file actions
40 lines (33 loc) · 870 Bytes
/
ArrayError.svelte
File metadata and controls
40 lines (33 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script lang="ts">
import type Extension from ".";
import {
ReactiveInvoke,
reactiveInvoke,
activeClass,
color,
} from "$common";
import { onDestroy } from "svelte";
export let extension: Extension;
export let close: () => void;
const invoke: ReactiveInvoke<Extension> = (functionName, ...args) =>
reactiveInvoke((extension = extension), functionName, args);
const container = activeClass;
onDestroy(() => {
console.log("Closed");
});
</script>
<div
class:container
style:width="50vw"
style:background-color={color.ui.white}
style:color={color.text.primary}
>
<h1>Cannot load Doodlebot's sound/image server!</h1>
<h2>Please try reloading the page.</h2>
</div>
<style>
.container {
text-align: center;
padding: 30px;
}
</style>