Cannot load OGS with latest Safari Nightlies

Hi there!

When trying to access the page with the latest Safari nightlies / Safari early access prototypes, https://online-go.com doesn’t load because of javascript errors.

To me the error:

[Error] TypeError: null is not an object (evaluating ‘navigator.userAgent.match(/Chrom(e|ium)/([0-9]+)./)’)
(anonymous function) (ogs.4.3-96-g0d539b9.min.js:1635:353)
Global Code (ogs.4.3-96-g0d539b9.min.js:2760:298)

looks like the WebRTC detection goes haywire, because it cannot fathom other browsers than Chrome / Firefox to ever implement this feature. :slight_smile:.

Maybe a more nuanced feature detection might be in order here?

Hello Developers,

is there a chance that this gets fixed? I’d love to try out the webrtc implementation in safari. Or should this be a bug report in your upstream library? (If so, which is it?)

I’d like to note, that it is quite possible for Apple to release this updated Safari at WWDC (June 13) to all OS X users, so it would think it wise you find the time to take some action before then. :slight_smile:

1 Like