if (typeof Sentry !== 'undefined') { Sentry.init({ dsn: 'https://7b98de12d23b4b6aa16023a0f05daf92@sentry.io/165365', environment: 'production', release: '2020.9.2', whitelistUrls: [/amaro\.com/], ignoreErrors: [ "Cannot read property 'getHostNode' of null", "SecurityError", "Unexpected identifier", "UnhandledRejection", // https://sentry.io/organizations/amaro/issues/1163978818 "MoatMAK", "Failed to update a ServiceWorker", "Failed to fetch", /Blocked a frame with origin.*/, /.*An unknown error occurred when fetching the script.*/, /(cancelado|cancelled|timeout|conexão.*inativa|hostname could not be found|connection.*offline|Esgotou-se o tempo limite da solicitação.*)/ ], }); Sentry.configureScope(function (scope) { scope.setTag('git_commit', '10bca4c' ); }); }