diff --git a/example/web/tdweb/package.json b/example/web/tdweb/package.json index 0705c422e..a1d78b47c 100644 --- a/example/web/tdweb/package.json +++ b/example/web/tdweb/package.json @@ -1,6 +1,6 @@ { "name": "@arseny30/tdweb", - "version": "1.4.5", + "version": "1.4.6", "description": "Javascript interface for TDLib (telegram library)", "main": "dist/tdweb.js", "repository": { diff --git a/example/web/tdweb/src/index.js b/example/web/tdweb/src/index.js index 9d044a368..183e52a48 100644 --- a/example/web/tdweb/src/index.js +++ b/example/web/tdweb/src/index.js @@ -442,7 +442,7 @@ class FileManager { init() { this.idb = new Promise((resolve, reject) => { - const request = window.indexedDB.open(this.instanceName, 1); + const request = window.indexedDB.open(this.instanceName); request.onsuccess = () => resolve(request.result); request.onerror = () => reject(request.error); });