We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34f105 commit 9041423Copy full SHA for 9041423
graphiql.go
@@ -148,10 +148,8 @@ add "&raw" to the end of the URL within a browser.
148
});
149
150
// Produce a Location query string from a parameter object.
151
- function locationQuery(params) {
152
- return '?' + Object.keys(params).filter(function (key) {
153
- return Boolean(params[key]);
154
- }).map(function (key) {
+ function locationQuery(params, location) {
+ return (location ? location: '') + '?' + Object.keys(params).map(function (key) {
155
return encodeURIComponent(key) + '=' +
156
encodeURIComponent(params[key]);
157
}).join('&');
0 commit comments