From 75603513b8ac72e0d4cbd20e73eebdb8e2abde62 Mon Sep 17 00:00:00 2001 From: Tzikas Date: Wed, 7 Jul 2021 15:05:43 -0400 Subject: [PATCH] removing api interceptors --- frontend/src/api/index.js | 22 +++++++++++----------- main.js | 2 +- package.json | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index b0ef881..1ad85ff 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -110,17 +110,17 @@ const actions = { } -API.interceptors.response.use( - (response) => response, - (error) => { - console.error(error?.response?.data) - NotificationManager.error(String(error?.response?.data?.message || error?.response?.data?.msg)) - if (error?.response?.status == 403 || error?.response?.status == 401) { - localStorage.removeItem("token") - localStorage.removeItem("googletoken") - } +// API.interceptors.response.use( +// (response) => response, +// (error) => { +// console.error(error?.response?.data) +// NotificationManager.error(String(error?.response?.data?.message || error?.response?.data?.msg)) +// if (error?.response?.status == 403 || error?.response?.status == 401) { +// localStorage.removeItem("token") +// localStorage.removeItem("googletoken") +// } - } -) +// } +// ) export default actions diff --git a/main.js b/main.js index 07f826e..94a2c23 100644 --- a/main.js +++ b/main.js @@ -273,7 +273,7 @@ function createJitsiMeetWindow() { // }, 10000) //Lets see - //mainWindow.webContents.openDevTools() //This don't seem to do nothing + //mainWindow.webContents.openDevTools() //NOTIFIICATIONS mainWindow.webContents diff --git a/package.json b/package.json index 95b0feb..d401738 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CowBellClub", - "version": "1.7.4", + "version": "1.7.5", "description": "Electron application for Cowbell Club", "main": "./build/main.js", "productName": "CowbellClub",