mark todo
This commit is contained in:
parent
bace157921
commit
77e2ca5640
@ -3,7 +3,7 @@ type ResponseObject = {
|
|||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// use case: prevent making phone calls / queue messages when offline
|
// use case: prevent making phone calls / queue messages when offline -- TODO
|
||||||
export async function checkConnectivity(online: () => void, offline: () => void): Promise<ResponseObject> {
|
export async function checkConnectivity(online: () => void, offline: () => void): Promise<ResponseObject> {
|
||||||
try {
|
try {
|
||||||
if (navigator.onLine) {
|
if (navigator.onLine) {
|
||||||
|
Loading…
Reference in New Issue
Block a user