Skip to content

Commit aa8e4a6

Browse files
authored
Merge pull request #1054 from StoDevX/fewer-ksto-bug-reports
Disable KSTO url handler error handling
2 parents 97ce43d + d29c837 commit aa8e4a6

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

source/views/streaming/radio.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,31 @@ import {
1616
} from 'react-native'
1717
import {Button} from '../components/button'
1818
import * as c from '../components/colors'
19-
import {tracker} from '../../analytics'
20-
import bugsnag from '../../bugsnag'
19+
//import {tracker} from '../../analytics'
20+
//import bugsnag from '../../bugsnag'
2121

2222
const kstoProtocol = 'KSTORadio://'
2323
const kstoAppStoreLink = 'itms://itunes.apple.com/us/app/ksto/id953916647'
2424
const kstoWebPage = 'https://www.stolaf.edu/multimedia/play/embed/ksto.html'
2525
const image = require('../../../images/streaming/ksto/ksto-logo.png')
2626

27+
/*
28+
* I disabled the ga/bugsnag tracking here because dismissing the dialogs
29+
* causes us to get an error... and I can't really see how these would fail?
30+
*/
31+
2732
function kstoWebsite() {
2833
Linking.openURL(kstoWebPage).catch(err => {
29-
tracker.trackException(`opening Android KSTO url: ${err.message}`)
30-
bugsnag.notify(err)
34+
//tracker.trackException(`opening Android KSTO url: ${err.message}`)
35+
//bugsnag.notify(err)
3136
console.warn('An error occurred opening the Android KSTO url', err)
3237
})
3338
}
3439

3540
function iosKstoAppDownload() {
3641
Linking.openURL(kstoAppStoreLink).catch(err => {
37-
tracker.trackException(`opening KSTO download url: ${err.message}`)
38-
bugsnag.notify(err)
42+
//tracker.trackException(`opening KSTO download url: ${err.message}`)
43+
//bugsnag.notify(err)
3944
console.warn('An error occurred opening the KSTO download url', err)
4045
})
4146
}
@@ -50,8 +55,8 @@ function iosKstoApp() {
5055
return Linking.openURL(kstoProtocol)
5156
})
5257
.catch(err => {
53-
tracker.trackException(`opening iOS KSTO url: ${err.message}`)
54-
bugsnag.notify(err)
58+
//tracker.trackException(`opening iOS KSTO url: ${err.message}`)
59+
//bugsnag.notify(err)
5560
console.warn('An error occurred opening the iOS KSTO url', err)
5661
})
5762
}

0 commit comments

Comments
 (0)