From 75f323e2f61f133d2526eafb30932dfe25b0e6b0 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Thu, 21 Mar 2019 22:58:52 +1300 Subject: [PATCH] tdweb: bugfix GitOrigin-RevId: ed7c94b8fea115b62776c3d3f44fe7f323961a66 --- example/web/tdweb/package.json | 2 +- example/web/tdweb/src/worker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/web/tdweb/package.json b/example/web/tdweb/package.json index 73d5c8cc5..ce459bb1c 100644 --- a/example/web/tdweb/package.json +++ b/example/web/tdweb/package.json @@ -1,6 +1,6 @@ { "name": "@arseny30/tdweb", - "version": "0.2.35", + "version": "0.2.36", "description": "Javascript interface for TDLib (telegram library)", "main": "dist/tdweb.js", "files": [ diff --git a/example/web/tdweb/src/worker.js b/example/web/tdweb/src/worker.js index 2fb30c760..e3c4484a3 100644 --- a/example/web/tdweb/src/worker.js +++ b/example/web/tdweb/src/worker.js @@ -651,7 +651,7 @@ class TdClient { try { var arr = this.FS.readFile(file.local.path); if (arr) { - file = Object.create(file); + file = Object.assign({}, file); file.arr = arr; this.doSaveFile(pid, file, arr); }