Initial commit: BRAT fork with Gitea support
Tatortreiniger / tatort-reinigen (release) Has been cancelled

This commit is contained in:
olivier committed 2026-05-24 18:35:09 -04:00
1 parent bd3153fd32
commit 8de00536fa
44 files changed
+5172 -3

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { requestUrl } from "obsidian";
/**
* Tests if there is an internet connection
* @returns true if connected, false if no internet
*/
export async function isConnectedToInternet(): Promise<boolean> {
try {
const online = await requestUrl(
`https://obsidian.md/?${Math.random()}`,
);
return online.status >= 200 && online.status < 300;
} catch {
return false;
}
}