Skip to content

Commit 48dfa2f

Browse files
committed
Do not wrap endpoint in url() unnecessarily
1 parent 2b174dc commit 48dfa2f

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 1.0.2
11+
12+
### Fixed
13+
14+
- Do not wrap endpoint in `url()` unnecessarily
15+
1016
## 1.0.1
1117

1218
### Fixed

views/index.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535

3636
<div id="voyager">Loading...</div>
3737
<script type="text/javascript">
38-
const url = <?php $endpoint = config('graphql-voyager.endpoint');
39-
echo is_string($endpoint)
40-
? "'" . url($endpoint) . "'"
41-
: 'null'; ?>
38+
const endpoint = <?php $endpoint = config('graphql-voyager.endpoint');
39+
echo is_string($endpoint)
40+
? "'" . $endpoint . "'"
41+
: 'null'; ?>
4242
43-
const introspectionProvider = url
43+
const introspectionProvider = endpoint
4444
? function introspectionProvider(introspectionQuery) {
45-
return fetch('{{url(config('graphql-voyager.endpoint'))}}', {
45+
return fetch(endpoint, {
4646
method: 'post',
4747
headers: {
4848
Accept: 'application/json',

0 commit comments

Comments
 (0)