Safari - blank page


(George Kaplan) #1

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?


(Rafael dos Santos Silva) #2

Safari version? Mobile or desktop?


(George Kaplan) #3

Both. Mobile/Desktop, blank page.

URL www.front.ge


(Robin Ward) #4

I can reproduce this. Working on a fix now.


(Robin Ward) #5

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:

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


(Robin Ward) #6