Skip to content

Conversation

@getkey
Copy link
Contributor

@getkey getkey commented May 8, 2019

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}

Related PR: #2649

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}
```
@Rich-Harris Rich-Harris merged commit aa5b522 into sveltejs:master May 9, 2019
@Rich-Harris
Copy link
Member

Seems reasonable. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants