Skip to content

Commit

Permalink
bump deps + version + clear out old sentry ignores
Browse files Browse the repository at this point in the history
we've not been getting many errors, im suspicious
  • Loading branch information
night committed Jan 28, 2018
1 parent 7c1073f commit 90c52b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 42 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "BetterTTV",
"author": "Night",
"version": "7.2.2",
"version": "7.2.3",
"description": "BetterTTV enhances Twitch with new features, emotes, and more.",
"main": "betterttv.js",
"scripts": {
Expand All @@ -28,9 +28,9 @@
"gulp-babel": "^7.0.0",
"gulp-concat": "^2.6.1",
"gulp-eslint": "^4.0.1",
"gulp-footer": "^1.0.5",
"gulp-footer": "^2.0.1",
"gulp-gzip": "^1.4.1",
"gulp-header": "^1.8.9",
"gulp-header": "^2.0.1",
"gulp-if": "^2.0.2",
"gulp-postcss": "^7.0.1",
"gulp-rename": "^1.2.2",
Expand All @@ -43,13 +43,13 @@
"moment": "^2.20.1",
"msgpack-lite": "^0.1.26",
"postcss-hexrgba": "^1.0.0",
"precss": "^2.0.0",
"precss": "^3.1.0",
"raven-js": "^3.21.0",
"request": "^2.83.0",
"require-globify": "^1.4.1",
"resizable": "^1.2.0",
"twemoji": "^2.5.0",
"twitch-chat-emotes": "github:night/Userscript--Twitch-Chat-Emotes#5ca8201698166c710436cd3935c8a2daf0f2834b",
"twitch-chat-emotes": "github:night/Userscript--Twitch-Chat-Emotes#1d03b36c940a3cf2cac80df92c183f021befbf84",
"uglify-save-license": "^0.4.1",
"view-list": "^2.1.0",
"vinyl-buffer": "^1.0.1",
Expand Down
39 changes: 2 additions & 37 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,49 +29,14 @@
{
release: process.env.GIT_REV,
environment: process.env.NODE_ENV,
ignoreErrors: [
'Blocked a frame with origin',
'player-core-min',
'InvalidAccessError',
'wrapped(betterttv)',
'Access is denied.',
'container.className.match is not a function',
'this exception cannot be caught',
'Wrong length!',
'Cannot read property \'value\' of undefined',
'"onJsReady"',
'Can\'t execute code from a freed script',
/^<anonymous> in/,
/^null$/,
/^undefined$/,
// Users that have broken jQuery
'this.dom.draggable is not a function',
'Cannot read property \'autoNS\' of undefined',
'Cannot read property \'autoWE\' of undefined',
'tipsy is not a function',
'tipsy is undefined',
'draggable is not a function',
'draggable is undefined',
'jQuery is not a function',
'unsupported pseudo: hover',
// Emote Menu
'Getter already exists.',
'Cannot read property \'setChannelName\' of undefined',
'.getTime is not a function',
'`callback` must be a function.'
],
ignoreErrors: [],
whitelistUrls: [
/betterttv\.js/,
/\.betterttv\.net/
],
shouldSendCallback: data => {
const exception = data.exception && data.exception.values[0];
if (data.message && data.message.includes('betterttv.js in wrap')) return false;
if (data.message === 'out of memory') return;
if (['betterttv in apply', 'wrapped(betterttv)'].includes(data.culprit)) return false;
if (exception && !exception.value) return false;
if (exception && ['NS_ERROR_NOT_INITIALIZED', 'NS_ERROR_OUT_OF_MEMORY', 'NS_ERROR_FAILURE'].includes(exception.type)) return true;
if (data.exception && data.exception.values.length < 3) return false;
if (exception && ['NS_ERROR_NOT_INITIALIZED', 'NS_ERROR_OUT_OF_MEMORY', 'NS_ERROR_FAILURE'].includes(exception.type)) return false;
return true;
}
}
Expand Down

0 comments on commit 90c52b3

Please sign in to comment.