File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const handleClick = (btn) => {
18
18
selected = btn .name
19
19
code = btn .code
20
20
btn .run ()
21
- gtag (' event' , ' toast' , { event_label: btn .name })
21
+ window . gtag (' event' , ' toast' , { event_label: btn .name })
22
22
}
23
23
24
24
const buttons = [
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ onMount(() => {
55
55
}
56
56
})
57
57
58
- afterUpdate (async (node ) => {
58
+ afterUpdate (async () => {
59
59
// code variable if they are using a prop
60
60
// Have to use innerText because innerHTML will create weird escape characaters
61
61
if (fakeCodeEl && fakeCodeEl .innerText !== ' ' ) {
Original file line number Diff line number Diff line change 11
11
< script >
12
12
window . dataLayer = window . dataLayer || [ ]
13
13
function gtag ( ) {
14
- dataLayer . push ( arguments )
14
+ window . dataLayer . push ( arguments )
15
15
}
16
16
gtag ( 'js' , new Date ( ) )
17
17
gtag ( 'config' , 'G-G9JC5N7N1H' )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export interface SvelteToastOptions {
33
33
intro ?: FlyParams
34
34
theme ?: { [ key : string ] : string }
35
35
component ?: {
36
- src : object
36
+ src : SvelteComponent
37
37
props ?: { [ key : string ] : any }
38
38
sendIdTo ?: string
39
39
}
You can’t perform that action at this time.
0 commit comments