Be more nodejs friendly, tweak some lines

This commit is contained in:
Josh Ponelat
2017-12-06 20:59:47 +02:00
parent e0ac7c11db
commit 733cddf146
3 changed files with 8 additions and 4 deletions

View File

@@ -607,7 +607,10 @@ export const getSampleSchema = (schema, contentType="", config={}) => {
export const parseSearch = () => {
let map = {}
let search = window.location.search
let search = win.location.search
if(!search)
return {}
if ( search != "" ) {
let params = search.substr(1).split("&")