Skip to content
Snippets Groups Projects

Feature 5.3.0

Merged Georgi requested to merge feature_5.3.0 into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
  • be95226f
    [BUGFIX] #279 Don't use whitelist as regex if it's empty · be95226f
    Georgi authored
@@ -1266,6 +1266,10 @@ const SgCookieOptin = {
* @return {boolean}
*/
isContentWhiteListed: function(externalContent) {
if (!SgCookieOptin.jsonData.mustacheData.iframeWhitelist.markup.trim()) {
return false;
}
const regularExpressions = SgCookieOptin.jsonData.mustacheData.iframeWhitelist.markup.trim()
.split(/\r?\n/).map(function(value) {
return new RegExp(value);
Loading