diff --git a/integrations/Sentry/browser.js b/integrations/Sentry/browser.js index b091b3edff..98bac0b9a9 100644 --- a/integrations/Sentry/browser.js +++ b/integrations/Sentry/browser.js @@ -40,6 +40,7 @@ class Sentry { const formattedAllowUrls = convertObjectToArray(this.allowUrls); const formattedDenyUrls = convertObjectToArray(this.denyUrls); const formattedIgnoreErrors = convertObjectToArray(this.ignoreErrors); + const formattedIncludePaths = convertObjectToArray(this.includePathsArray); const customRelease = this.customVersionProperty ? window[this.customVersionProperty] @@ -59,8 +60,8 @@ class Sentry { let includePaths = []; - if (this.includePathsArray.length > 0) { - includePaths = this.includePathsArray.map(function (path) { + if (formattedIncludePaths.length > 0) { + includePaths = formattedIncludePaths.map(function (path) { let regex; try { regex = new RegExp(path);