Skip to content

Commit

Permalink
fix formatting and deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Mar 24, 2024
1 parent e80ffe0 commit b67796b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/docs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>{{ config('app.name') }} - API Docs</title>

<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>

<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">

<script>
const originalFetch = window.fetch;
Expand Down Expand Up @@ -37,7 +37,7 @@
const csrfToken = getCookieValue(CSRF_TOKEN_COOKIE_KEY);
if (csrfToken) {
const { headers = new Headers() } = options || {};
updateFetchHeaders(headers, CSRF_TOKEN_HEADER_KEY, unescape(csrfToken));
updateFetchHeaders(headers, CSRF_TOKEN_HEADER_KEY, decodeURI(csrfToken));
return originalFetch(url, {
...options,
headers,
Expand Down

0 comments on commit b67796b

Please sign in to comment.