From adb262c6b871ff4de3a4da14876c6a196be6c822 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 3 May 2026 02:12:55 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20=D9=85=D9=8F=D8=B5=D8=A7=D8=AF?= =?UTF-8?q?=D9=8E=D9=82:=20=D8=AA=D8=AD=D8=AF=D9=8A=D8=AB=20=D8=A8=D8=B1?= =?UTF-8?q?=D9=85=D8=AC=D9=8A=20=D8=AC=D8=AF=D9=8A=D8=AF=202026-05-03=2002?= =?UTF-8?q?:12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/shell.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/shell.php b/public/shell.php index 9240f7b..dc1b246 100644 --- a/public/shell.php +++ b/public/shell.php @@ -123,7 +123,12 @@ } const res = await fetch(`${this.baseUrl}${path}`, { method, headers, body }); const data = await res.json(); - if (!res.ok) throw data; + if (!res.ok) { + if (res.status === 401) { + logout(); + } + throw data; + } return data; },