concat instead of push

This commit is contained in:
harryadel
2023-06-23 16:54:36 +03:00
parent 55ddefb4f3
commit cb576fb4b2

View File

@@ -95,7 +95,7 @@ var prepareForCspDirective = function (directive) {
cspSrcs = cspSrcs || {};
cachedCsp = null;
if (!has(cspSrcs, directive))
cspSrcs[directive] = [].push(cspSrcs["default-src"]);
cspSrcs[directive] = [].concat(cspSrcs["default-src"]);
};
// Add `src` to the list of allowed sources for `directive`, with the