From: Adam Dullage Date: Fri, 13 Oct 2023 11:43:26 +0000 (+0100) Subject: Formatting X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=038cfe19462d2ff7b814d17a469dc70f0cfc5c68;p=flatnotes.git Formatting --- diff --git a/flatnotes/src/api.js b/flatnotes/src/api.js index 0ab3a26..e7281aa 100644 --- a/flatnotes/src/api.js +++ b/flatnotes/src/api.js @@ -6,23 +6,23 @@ import axios from "axios"; const api = axios.create(); api.interceptors.request.use( - function(config) { + function (config) { if (config.url !== "/api/token") { let token = sessionStorage.getItem("token"); config.headers.Authorization = `Bearer ${token}`; } return config; }, - function(error) { + function (error) { return Promise.reject(error); } ); api.interceptors.response.use( - function(response) { + function (response) { return response; }, - function(error) { + function (error) { if ( typeof error.response !== "undefined" && error.response.status === 401