mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-17 12:42:17 +00:00
chore: delete unused util/network module (#27329)
This commit is contained in:
parent
f13fc5a8a8
commit
762020f63a
1 changed files with 0 additions and 9 deletions
|
|
@ -1,9 +0,0 @@
|
|||
export function online() {
|
||||
const nav = globalThis.navigator
|
||||
if (!nav || typeof nav.onLine !== "boolean") return true
|
||||
return nav.onLine
|
||||
}
|
||||
|
||||
export function proxied() {
|
||||
return !!(process.env.HTTP_PROXY || process.env.HTTPS_PROXY || process.env.http_proxy || process.env.https_proxy)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue