|
@@ -23,7 +23,7 @@ function JsonVisio({ Component, pageProps }: AppProps) {
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
if (!window.matchMedia("(display-mode: standalone)").matches) {
|
|
if (!window.matchMedia("(display-mode: standalone)").matches) {
|
|
navigator.serviceWorker
|
|
navigator.serviceWorker
|
|
- .getRegistrations()
|
|
|
|
|
|
+ ?.getRegistrations()
|
|
.then(function (registrations) {
|
|
.then(function (registrations) {
|
|
for (let registration of registrations) {
|
|
for (let registration of registrations) {
|
|
registration.unregister();
|
|
registration.unregister();
|