Skip to content

Commit a272ae2

Browse files
author
Bogdan Cirlig
committed
addressed crash issue RisingStack#6
1 parent ca6f23f commit a272ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ function shouldPreRender (options) {
100100
}
101101

102102
// do pre-render when:
103-
if (url
104-
.parse(options.url, true).query.hasOwnProperty('_escaped_fragment_')) {
103+
var query = url.parse(options.url, true).query;
104+
if (query && query.hasOwnProperty('_escaped_fragment_')) {
105105
return true;
106106
}
107107

0 commit comments

Comments
 (0)