mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Use .push to extend array instead of spread operator
This commit is contained in:
@@ -95,7 +95,7 @@ var prepareForCspDirective = function (directive) {
|
||||
cspSrcs = cspSrcs || {};
|
||||
cachedCsp = null;
|
||||
if (!has(cspSrcs, directive))
|
||||
cspSrcs[directive] = [...cspSrcs["default-src"]];
|
||||
cspSrcs[directive] = [].push(cspSrcs["default-src"]);
|
||||
};
|
||||
|
||||
// Add `src` to the list of allowed sources for `directive`, with the
|
||||
|
||||
Reference in New Issue
Block a user