chore: generate
This commit is contained in:
@@ -89,10 +89,7 @@ export function shouldDisplayTabsToast(
|
|||||||
return isAppUpgrade(previous, current) || (!previous && existingInstall)
|
return isAppUpgrade(previous, current) || (!previous && existingInstall)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasExistingWebState(
|
export function hasExistingWebState(settings: Promise<string> | string | null, previousVersion: string | undefined) {
|
||||||
settings: Promise<string> | string | null,
|
|
||||||
previousVersion: string | undefined,
|
|
||||||
) {
|
|
||||||
return settings !== null || previousVersion !== undefined
|
return settings !== null || previousVersion !== undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,11 +300,7 @@ export const { use: useSettings, provider: SettingsProvider } = createSimpleCont
|
|||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (!ready() || !launchState.classified || platform.platform !== "web") return
|
if (!ready() || !launchState.classified || platform.platform !== "web") return
|
||||||
if (layoutTransitionClassified()) return
|
if (layoutTransitionClassified()) return
|
||||||
setStore(
|
setStore("general", "layoutTransitionEligible", hasExistingWebState(settingsInit, launchState.previous))
|
||||||
"general",
|
|
||||||
"layoutTransitionEligible",
|
|
||||||
hasExistingWebState(settingsInit, launchState.previous),
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user