Skip to content

Commit

Permalink
Use Object.assign (#1092)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
  • Loading branch information
rcebulko and samouri authored Sep 9, 2021
1 parent b2363aa commit 7b60849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main-thread/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class WorkerContext {
${JSON.stringify(sessionStorageInit)}
);
workerDOM.document[${TransferrableKeys.observe}](this);
Object.keys(workerDOM).forEach(function(k){self[k]=workerDOM[k]});
Object.assign(self, workerDOM);
}).call(self);
${authorScript}
//# sourceURL=${encodeURI(config.authorURL)}`;
Expand Down

0 comments on commit 7b60849

Please sign in to comment.