Safari - blank page

Works perfect in Chrome and FF. But on Safari I get a blank page. Not related to cache etc. Tried various phones/macs.

I get this error in the logs:

SyntaxError: Strict mode does not allow function declarations in a lexically nested statement.
Url: http://xxx.com/assets/pretty-text-bundle-1b943a212967a3af511e1a6d1989a85e91955906439d6084e47bfcc175cc54f6.js
Line: 811
Column: 0
Window Location: http://xxx.com/

Any ideas?

Safari version? Mobile or desktop?

1 Like

Both. Mobile/Desktop, blank page.

URL www.front.ge

I can reproduce this. Working on a fix now.

4 Likes

Here’s the fixes:

As it turns out some of the ways the new ES6 code used functions wasn’t valid under Safari’s strict mode. Chrome and Firefox did not care:

https://github.com/discourse/discourse/commit/00e45c0d3c3f5b2913e32dc05bfbea366fb894ff

I’m going to see if I can make ESLint complain about this in the future so it doesn’t happen again.

5 Likes