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.
Line: 811
Column: 0
Window Location:

Any ideas?

(Rafael dos Santos Silva) #2

Safari version? Mobile or desktop?

(George Kaplan) #3

Both. Mobile/Desktop, blank page.


(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