fix(pwa): show install prompt only once
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import { AppStorage } from "@/data/storage/app/app_storage";
|
||||
|
||||
export async function canShowPwaInstallPromptOnce(): Promise<boolean> {
|
||||
const result = await AppStorage.canShowPwaDialog();
|
||||
return result.success && result.data;
|
||||
}
|
||||
|
||||
export function recordPwaInstallPromptShown(): Promise<unknown> {
|
||||
return AppStorage.recordPwaDialogShown();
|
||||
}
|
||||
Reference in New Issue
Block a user