mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-21 17:26:22 +00:00
[Dev] Remove logging for api requests outside of dev (#4804)
This commit is contained in:
parent
b2fdb9fcd1
commit
2b91d9d259
@ -69,7 +69,9 @@ export abstract class ApiBase {
|
||||
"Content-Type": config.headers?.["Content-Type"] ?? "application/json",
|
||||
};
|
||||
|
||||
console.log(`Sending ${config.method ?? "GET"} request to: `, this.base + path, config);
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(`Sending ${config.method ?? "GET"} request to: `, this.base + path, config);
|
||||
}
|
||||
|
||||
return await fetch(this.base + path, config);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user