We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4547221 commit 13d8fe6Copy full SHA for 13d8fe6
1 file changed
javascripts/explorer.js
@@ -1,6 +1,6 @@
1
-const explorerUrl = process.env.NODE_ENV === 'production'
2
- ? 'https://graphql.github.com/explorer'
3
- : 'http://localhost:3000'
+const explorerUrl = location.hostname === 'localhost'
+ ? 'http://localhost:3000'
+ : 'https://graphql.github.com/explorer'
4
5
// Pass non-search query params to Explorer app via the iFrame
6
export default function () {
0 commit comments