Skip to content

Commit fd68445

Browse files
committed
The RangeError also occurs on my M1 mac mini, so change the test.
1 parent 645d8ff commit fd68445

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

renpy-shell.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,10 @@
389389
//Module.setStatus('Exception thrown, see JavaScript console');
390390
// Explicitly display meaningful errors such as "uncaught exception: out of memory":
391391

392-
var iOSSafari = /iP(ad|od|hone)/i.test(window.navigator.userAgent) && /WebKit/i.test(window.navigator.userAgent) && !(/(CriOS|FxiOS|OPiOS|mercury)/i.test(window.navigator.userAgent));
392+
var appleWarning = "";
393393

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 (/RangeError/.test(event)) {
395+
appleWarning = "\n<p>This is a known issue in Safari and Webkit browsers. Please report this issue to Apple.";
398396
}
399397

400398
Module.setStatus('Error: ' + event.split('\n')[0] + ' (see JavaScript console for details)' + appleWarning);

0 commit comments

Comments
 (0)