File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 389
389
//Module.setStatus('Exception thrown, see JavaScript console');
390
390
// Explicitly display meaningful errors such as "uncaught exception: out of memory":
391
391
392
- var iOSSafari = / i P ( a d | o d | h o n e ) / i . test ( window . navigator . userAgent ) && / W e b K i t / i . test ( window . navigator . userAgent ) && ! ( / ( C r i O S | F x i O S | O P i O S | m e r c u r y ) / i . test ( window . navigator . userAgent ) ) ;
392
+ var appleWarning = "" ;
393
393
394
- if ( iOSSafari ) {
395
- var appleWarning = "\n<p>\nMobile Safari has known compatibility issues. Please contact Apple if this game does not load properly." ;
396
- } else {
397
- var appleWarning = "" ;
394
+ if ( / R a n g e E r r o r / . test ( event ) ) {
395
+ appleWarning = "\n<p>This is a known issue in Safari and Webkit browsers. Please report this issue to Apple." ;
398
396
}
399
397
400
398
Module . setStatus ( 'Error: ' + event . split ( '\n' ) [ 0 ] + ' (see JavaScript console for details)' + appleWarning ) ;
You can’t perform that action at this time.
0 commit comments