From 5cc40abeba8533883d220cd40e1fa041224630f4 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 24 Apr 2019 00:06:39 +0300 Subject: [PATCH] tdweb: add 'init' and 'start' to the list of unsupported methods. GitOrigin-RevId: 5bdb0dbcfee13fff76312d1408ff7c340732df88 --- example/web/README.md | 4 ++-- example/web/tdweb/src/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/web/README.md b/example/web/README.md index c036bceb..3a6ae911 100644 --- a/example/web/README.md +++ b/example/web/README.md @@ -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). diff --git a/example/web/tdweb/src/index.js b/example/web/tdweb/src/index.js index 2d64b23d..92a6c479 100644 --- a/example/web/tdweb/src/index.js +++ b/example/web/tdweb/src/index.js @@ -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? }