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); }