tdweb: windows.indexedDb -> indexedDB

GitOrigin-RevId: f7d4b7ae785c3f2e0ae2e04b54fe34ce0bfff68a
This commit is contained in:
Arseny Smirnov 2019-12-24 14:39:52 +04:00
parent 8f72e0daea
commit eec3a5205c

View File

@ -442,7 +442,7 @@ class FileManager {
init() {
this.idb = new Promise((resolve, reject) => {
const request = window.indexedDB.open(this.instanceName);
const request = indexedDB.open(this.instanceName);
request.onsuccess = () => resolve(request.result);
request.onerror = () => reject(request.error);
});