victorteokw / query-string-parser

Rack style query string parser for Node.js
MIT License
8 stars 1 forks source link

Does not work on server side due to window #2

Closed tlkrsme closed 5 years ago

tlkrsme commented 5 years ago

the row var query = arguments.length <= 0 || arguments[0] === undefined ? window.location.search :arguments[0]; craches when using it for server side rendering as it tries to access the global window object.

victorteokw commented 5 years ago

Hi @tlkrsme, This bug is fixed in the newest version. Please update to the latest version.