mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Make IE 11 happy (#5499)
https://sentry.io/share/issue/3bc66ffadcad46a9aae703d5eba1e342/ ![capture d ecran 2018-10-22 a 12 04 16](https://user-images.githubusercontent.com/3165635/47287491-b1683a80-d5f2-11e8-8c3f-e409340b880f.png)
This commit is contained in:
parent
c111eac1ae
commit
e02c0d000a
|
@ -187,7 +187,7 @@ export class NextScript extends Component {
|
||||||
static getInlineScriptSource (documentProps) {
|
static getInlineScriptSource (documentProps) {
|
||||||
const { __NEXT_DATA__ } = documentProps
|
const { __NEXT_DATA__ } = documentProps
|
||||||
const { page } = __NEXT_DATA__
|
const { page } = __NEXT_DATA__
|
||||||
return `__NEXT_DATA__ = ${htmlescape(__NEXT_DATA__)};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])}`
|
return `__NEXT_DATA__ = ${htmlescape(__NEXT_DATA__)};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])};`
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
|
Loading…
Reference in a new issue