Skip to content

Commit

Permalink
Update demo-ton-ui.html
Browse files Browse the repository at this point in the history
  • Loading branch information
stels-cs authored Oct 25, 2023
1 parent 815137d commit 36d336a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ton-connect-ui/demo-ton-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@
.center button {
font-size: 25px;
}

pre {
word-wrap: break-word;
word-break: break-word;
max-width: 100vw;
text-wrap: wrap;
}
</style>
</head>
<body>
<div class="center">
<button onclick="connectWallet()">Connect TON</button>
<button onclick="disconnectWallet()">Disconnect TON</button>
<pre id="log"></pre>
</div>
</body>
Expand Down Expand Up @@ -52,5 +60,9 @@
const connectedWallet = await tonConnectUI.connectWallet();
log("connected after connectWallet");
}

function disconnectWallet() {
tonConnectUI.disconnect();
}
</script>
</html>

0 comments on commit 36d336a

Please sign in to comment.