{"action":"closed","issue":{"url":"https://api.github.com/repos/rollbar/rollbar.js/issues/118","labels_url":"https://api.github.com/repos/rollbar/rollbar.js/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/rollbar/rollbar.js/issues/118/comments","events_url":"https://api.github.com/repos/rollbar/rollbar.js/issues/118/events","html_url":"https://github.com/rollbar/rollbar.js/issues/118","id":98949584,"number":118,"title":"Can't block domain for Safari","user":{"login":"davidmatas","id":271760,"avatar_url":"https://avatars.githubusercontent.com/u/271760?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmatas","html_url":"https://github.com/davidmatas","followers_url":"https://api.github.com/users/davidmatas/followers","following_url":"https://api.github.com/users/davidmatas/following{/other_user}","gists_url":"https://api.github.com/users/davidmatas/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmatas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmatas/subscriptions","organizations_url":"https://api.github.com/users/davidmatas/orgs","repos_url":"https://api.github.com/users/davidmatas/repos","events_url":"https://api.github.com/users/davidmatas/events{/privacy}","received_events_url":"https://api.github.com/users/davidmatas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-04T11:46:35Z","updated_at":"2015-11-10T19:15:53Z","closed_at":"2015-11-10T19:15:53Z","body":"Hi! I have an ignore rule that is not working for Safari. This is my config:\r\n\r\n```\r\nvar domainsBlocked = [\r\n  \"google-analytics.com\",\r\n  ...\r\n]\r\n\r\nfunction ignoreFilesUncaught(isUncaught, args, payload) {\r\n  try {\r\n    var filename = payload.data.body.trace.frames[0].filename;\r\n\r\n    var isBlocked = domainsBlocked.some(function(domain){\r\n      return filename.indexOf(domain) !== -1;\r\n    });\r\n\r\n    if (isUncaught && isBlocked) {\r\n      return true;\r\n    }\r\n  } catch (e) {}\r\n  return false;\r\n}\r\n```\r\n\r\nMy Rollbar config is:\r\n\r\n```\r\nvar _rollbarConfig = {\r\n  accessToken: \"...\",\r\n  checkIgnore: ignoreFilesUncaught\r\n  ...\r\n}\r\n```\r\n\r\nAnd the payload looks like:\r\n```\r\n{\r\n  \"body\": {\r\n    \"trace\": {\r\n      \"frames\": [\r\n        {\r\n          \"method\": \"[anonymous]\", \r\n          \"lineno\": 1, \r\n          \"colno\": 1289, \r\n          \"filename\": \"https://www.google-analytics.com/plugins/ua/linkid.js\"\r\n        }\r\n...\r\n}\r\n```\r\n\r\nIt is failing for Safari 6, 7, 8. Do you think it could be related with something on your side?"}}