# Safari - blank page

**URL:** https://meta.discourse.org/t/safari-blank-page/47237
**Category:** Support
**Created:** [2016年七月13日 18:43 UTC](https://meta.discourse.org/t/safari-blank-page/47237 "2016-07-13T18:43:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![georgekaplan59](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/georgekaplan59/32/114279_2.png) [@georgekaplan59](https://meta.discourse.org/u/georgekaplan59)
#### Post date: [2016年七月13日 18:43 UTC](https://meta.discourse.org/t/safari-blank-page/47237/1 "2016-07-13T18:43:16Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年七月13日 18:44 UTC](https://meta.discourse.org/t/safari-blank-page/47237/2 "2016-07-13T18:44:01Z")

</div>

Safari version? Mobile or desktop?

---

<div class="post-metadata">

### Author: ![georgekaplan59](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/georgekaplan59/32/114279_2.png) [@georgekaplan59](https://meta.discourse.org/u/georgekaplan59)
#### Post date: [2016年七月13日 18:44 UTC](https://meta.discourse.org/t/safari-blank-page/47237/3 "2016-07-13T18:44:37Z")

</div>

Both. Mobile/Desktop, blank page.

URL www.front.ge

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年七月13日 19:10 UTC](https://meta.discourse.org/t/safari-blank-page/47237/4 "2016-07-13T19:10:29Z")

</div>

I can reproduce this. Working on a fix now.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年七月13日 19:45 UTC](https://meta.discourse.org/t/safari-blank-page/47237/5 "2016-07-13T19:45:18Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年七月13日 20:00 UTC](https://meta.discourse.org/t/safari-blank-page/47237/6 "2016-07-13T20:00:20Z")

</div>


