@tonconnect/sdk
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -520,2 +520,6 @@ export declare interface Account { | ||
aboutUrl: string; | ||
/** | ||
* OS and browsers where the wallet could be installed | ||
*/ | ||
platforms: ('ios' | 'android' | 'macos' | 'windows' | 'linux' | 'chrome' | 'firefox' | 'safari')[]; | ||
} | ||
@@ -522,0 +526,0 @@ |
{ | ||
"name": "@tonconnect/sdk", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "npx rimraf types-dist && npx rimraf lib && npx rollup -c rollup.config.mjs && ttsc --project tsconfig.declarations.json && api-extractor run && npx rimraf types-dist && npx rimraf dist && npx webpack --config webpack.config.js", |
@@ -248,2 +248,10 @@ # TON Connect SDK | ||
## Disconnect wallet | ||
Note that if you want to change connected wallet, you should disconnect current one firstly. Also make sure that you've waited for `restoreConnection()` promise resolved before call `disconnect()`; | ||
```ts | ||
if (connector.connected) { | ||
await connector.disconnect(); | ||
} | ||
``` | ||
# Utils | ||
@@ -250,0 +258,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
670879
4367
354