Skip to content

Commit

Permalink
cleanup + deps + updtae chain infos
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Aug 27, 2021
1 parent c4205b0 commit cb39db3
Show file tree
Hide file tree
Showing 5 changed files with 363 additions and 471 deletions.
5 changes: 5 additions & 0 deletions examples/svelte-app-template-web3/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
let example = MonoChain
$: metamaskConnected = window.ethereum ? window.ethereum.isConnected() : false
</script>

<section class="section pb-0">
Expand All @@ -32,6 +34,9 @@
</div>
{/if}
<p>Browser wallet detected in Global Object window.ethereum : { window.ethereum ? 'yes' : 'no' }</p>
{#if window.ethereum}
<p>Browser wallet already connected to metamask : { metamaskConnected }</p>
{/if}

</div>
</section>
Expand Down
Loading

0 comments on commit cb39db3

Please sign in to comment.