Skip to content

Commit

Permalink
tdweb: add 'init' and 'start' to the list of unsupported methods.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 5bdb0dbcfee13fff76312d1408ff7c340732df88
  • Loading branch information
levlam committed Apr 23, 2019
1 parent a50a86b commit 5cc40ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/web/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# TDLib Web example

This is an example of building `TDLib` for browsers using [Emscripten](https://github.com/kripken/emscripten).
These scripts build `TDLib` and creates [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/@arseny30/tdweb);
These scripts build `TDLib` and creates [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/@arseny30/tdweb).
You need Unix shell with `sed`, `tar` and `wget` utilities to run provided scripts.

## Building TDLib
## Building tdweb NPM package

* Install latest [emsdk](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html). Do not use system-provided `emscripten` package, because it contains too old version.
* Install all `TDLib` build dependencies as described in [Building](https://github.com/tdlib/td#building).
Expand Down
2 changes: 1 addition & 1 deletion example/web/tdweb/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class TdClient {
* @returns {Promise} Promise object represents the result of the query.
*/
send(query) {
let unsupportedMethods = ['getStorageStatistics', 'getStorageStatisticsFast', 'optimizeStorage', 'addProxy'];
let unsupportedMethods = ['getStorageStatistics', 'getStorageStatisticsFast', 'optimizeStorage', 'addProxy', 'init', 'start'];
if (unsupportedMethods.includes(query['@type'])) {
return; // TODO what we need to return?
}
Expand Down

0 comments on commit 5cc40ab

Please sign in to comment.