mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Replace delete all cookie metod
This commit is contained in:
@@ -14,7 +14,6 @@ export async function Post(url = "", data = {}) {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
DeleteAllCookie()
|
||||
console.log("Fetch error:", response.status);
|
||||
}
|
||||
|
||||
@@ -41,6 +40,11 @@ export async function GetCurrentMoney(authToken, searchToken) {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
DeleteAllCookie()
|
||||
|
||||
location.reload();
|
||||
|
||||
console.log("Fetch error:", response.status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user