mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-30 03:24:19 +01:00
add ios banner on mobile safari
This commit is contained in:
committed by
Tony Giorgio
parent
812e861e10
commit
69f5935afd
@@ -67,6 +67,7 @@ export type MegaStore = [
|
||||
npub?: string;
|
||||
preferredInvoiceType: "unified" | "lightning" | "onchain";
|
||||
betaWarned: boolean;
|
||||
testflightPromptDismissed: boolean;
|
||||
should_zap_hodl: boolean;
|
||||
},
|
||||
{
|
||||
@@ -89,6 +90,7 @@ export type MegaStore = [
|
||||
onSuccess: (value: ParsedParams) => void
|
||||
): void;
|
||||
setBetaWarned(): void;
|
||||
setTestFlightPromptDismissed(): void;
|
||||
toggleHodl(): void;
|
||||
}
|
||||
];
|
||||
@@ -126,7 +128,9 @@ export const Provider: ParentComponent = (props) => {
|
||||
npub: localStorage.getItem("npub") || undefined,
|
||||
preferredInvoiceType: "unified" as "unified" | "lightning" | "onchain",
|
||||
betaWarned: localStorage.getItem("betaWarned") === "true",
|
||||
should_zap_hodl: localStorage.getItem("should_zap_hodl") === "true"
|
||||
should_zap_hodl: localStorage.getItem("should_zap_hodl") === "true",
|
||||
testflightPromptDismissed:
|
||||
localStorage.getItem("testflightPromptDismissed") === "true"
|
||||
});
|
||||
|
||||
const actions = {
|
||||
@@ -365,6 +369,10 @@ export const Provider: ParentComponent = (props) => {
|
||||
localStorage.setItem("betaWarned", "true");
|
||||
setState({ betaWarned: true });
|
||||
},
|
||||
setTestFlightPromptDismissed() {
|
||||
localStorage.setItem("testflightPromptDismissed", "true");
|
||||
setState({ testflightPromptDismissed: true });
|
||||
},
|
||||
toggleHodl() {
|
||||
const should_zap_hodl = !state.should_zap_hodl;
|
||||
localStorage.setItem("should_zap_hodl", should_zap_hodl.toString());
|
||||
|
||||
Reference in New Issue
Block a user