mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Use assign to avoid an extra object copy
This commit is contained in:
@@ -140,7 +140,7 @@ export default class ClientStream extends StreamClientCommon {
|
||||
headers: this.headers,
|
||||
extensions: [deflate]
|
||||
};
|
||||
fayeOptions = { ...fayeOptions, ...this.npmFayeOptions };
|
||||
fayeOptions = Object.assign(fayeOptions, this.npmFayeOptions);
|
||||
var proxyUrl = this._getProxyUrl(targetUrl);
|
||||
if (proxyUrl) {
|
||||
fayeOptions.proxy = { origin: proxyUrl };
|
||||
|
||||
Reference in New Issue
Block a user