File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ const createGetData = fetch => async (url, opts) => {
3030 e => e . attributes . findIndex ( a => a . value === 'resource' ) !== - 1
3131 )
3232
33- const hydrateScript = scripts . filter (
34- e => e . children [ 0 ] && / % 2 2 d a t a % 2 2 % | " d a t a " : / . test ( e . children [ 0 ] . content )
35- )
36-
3733 if ( resourceScript . length > 0 ) {
3834 // found data in the older embed style
3935 return JSON . parse ( decodeURIComponent ( resourceScript [ 0 ] . children [ 0 ] . content ) )
4036 }
4137
38+ const hydrateScript = scripts . filter (
39+ e => e . children [ 0 ] && / % 2 2 d a t a % 2 2 % | " d a t a " : / . test ( e . children [ 0 ] . content )
40+ )
41+
4242 if ( hydrateScript . length > 0 ) {
4343 // found hydration data
4444 // parsing via looking for { to be a little bit resistant to code changes
You can’t perform that action at this time.
0 commit comments