mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
9 lines
271 B
JavaScript
9 lines
271 B
JavaScript
export default async (url,config) => {
|
|
const response = await fetch(url, config);
|
|
console.log(response);
|
|
if(response.status == 401){
|
|
const event = new Event("sunshine:session_expire");
|
|
window.dispatchEvent(event);
|
|
}
|
|
return response;
|
|
}; |