Add `window` and `document` to globals

To prevent the following warning message:

```
(!) svelte plugin: 'window' is not defined
src/templates/Share.svelte
20: </script>
21:
22: {#if window.navigator.share}
         ^
23:   <button class="icon-share2" on:click="{shareNatively}" title="Share"></button>
24: {:else}
```
pull/2722/head
Julien Mourer 6 years ago
parent 3d9cb3b611
commit 4631b1b93f

@ -10,6 +10,7 @@ export const globals = new Set([
'Date',
'decodeURI',
'decodeURIComponent',
'document',
'encodeURI',
'encodeURIComponent',
'Infinity',
@ -31,6 +32,7 @@ export const globals = new Set([
'Set',
'String',
'undefined',
'window',
]);
export const reserved = new Set([

Loading…
Cancel
Save