-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Labels
Description
This issue pertains to the following package(s):
- GraphQL Playground - Electron App
- GraphQL Playground HTML
- GraphQL Playground
- GraphQL Playground Express Middleware
- GraphQL Playground Hapi Middleware
- GraphQL Playground Koa Middleware
- GraphQL Playground Lambda Middleware
What OS and OS version are you experiencing the issue(s) on?
macOS Mojava
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
master
What is the expected behavior?
Configuration options picked up.
What is the actual behavior?
Configuration options not picked up.
What steps may we take to reproduce the behavior?
- Copy https://github.com/prisma/graphql-playground/blob/master/packages/graphql-playground-html/minimal.html
- Change
<script>window.addEventListener('load', function (event) {
GraphQLPlayground.init(document.getElementById('root'), {
// options as 'endpoint' belong here
})
})</script>
to e.g.
<script>window.addEventListener('load', function (event) {
GraphQLPlayground.init(document.getElementById('root'), {
endpoint: 'https://mycom.com/graphql',
fixedEndpoint: true,
isReloadingSchema: false,
shareEnabled: false
})
})</script>
Although fixedEndpoint and shareEnabled are set to appropriate values the endpoint is still editable and the share button displayed (as can be seen in screenshot below).
Please provide a gif or image of the issue for a quicker response/fix.
abernix, BadgerBadgerBadgerBadger and magicoder10
