Merge pull request #2642 from LLK/develop

[MASTER] Deploy audio engine and sentry fix
This commit is contained in:
Paul Kaplan 2019-01-09 08:50:57 -05:00 committed by GitHub
commit e35ff9f60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -100,7 +100,7 @@
"redux": "3.5.2",
"redux-thunk": "2.0.1",
"sass-loader": "6.0.6",
"scratch-gui": "0.1.0-prerelease.20190108140207",
"scratch-gui": "0.1.0-prerelease.20190108222744",
"scratch-l10n": "latest",
"scratchr2_translations": "git://github.com/LLK/scratchr2_translations.git#master",
"slick-carousel": "1.6.0",

View file

@ -38,7 +38,10 @@ const localStorageAvailable = 'localStorage' in window && window.localStorage !=
const Sentry = require('@sentry/browser');
if (`${process.env.SENTRY_DSN}` !== '') {
Sentry.init({
dsn: `${process.env.SENTRY_DSN}`
dsn: `${process.env.SENTRY_DSN}`,
integrations: integrations =>
// Do not collect global onerror, only collect specifically from React error boundaries.
integrations.filter(i => i.name !== 'GlobalHandlers')
});
window.Sentry = Sentry; // Allow GUI access to Sentry via window
}