Merge branch 'master' into issue923

This commit is contained in:
Keyan 2024-03-26 09:45:10 -05:00 committed by GitHub
commit 812e76b399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export default function MyApp ({ Component, pageProps: { ...props } }) {
// hack to disable ios pwa prompt for https://github.com/stackernews/stacker.news/issues/953
// see https://github.com/chrisdancee/react-ios-pwa-prompt/blob/66e91c4f033b740cff42c3220cf13ebdf39e3078/src/index.js#L30
if (router?.query?.disablePrompt) {
localStorage.setItem("iosPwaPrompt", JSON.stringify({ isiOS: false, visits: 0 }))
window.localStorage.setItem('iosPwaPrompt', JSON.stringify({ isiOS: false, visits: 0 }))
}
}, [router?.query?.disablePrompt])