From 55ddefb4f3018d70f99b31c0588702c8b27218eb Mon Sep 17 00:00:00 2001 From: harryadel Date: Fri, 23 Jun 2023 16:51:45 +0300 Subject: [PATCH] Use .push to extend array instead of spread operator --- packages/browser-policy-content/browser-policy-content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser-policy-content/browser-policy-content.js b/packages/browser-policy-content/browser-policy-content.js index 34b21cbba8..fdfb413c94 100644 --- a/packages/browser-policy-content/browser-policy-content.js +++ b/packages/browser-policy-content/browser-policy-content.js @@ -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