From 32f4a0158b808aa010e0d8d5ef7331618991d964 Mon Sep 17 00:00:00 2001 From: Tachibana Shin Date: Tue, 13 Jun 2023 15:12:07 +0700 Subject: [PATCH] fix notify refresh update app not auto hide --- src-pwa/register-service-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-pwa/register-service-worker.ts b/src-pwa/register-service-worker.ts index ba9ee172..3a4d4edd 100644 --- a/src-pwa/register-service-worker.ts +++ b/src-pwa/register-service-worker.ts @@ -38,7 +38,7 @@ register(process.env.SERVICE_WORKER_FILE, { Notify.create({ message: i18n.global.t("ung-dung-da-duoc-cap-nhat"), position: "bottom-right", - timeout: 0, + timeout: 1500, actions: [ { label: i18n.global.t("lam-moi-ngay"), @@ -49,7 +49,7 @@ register(process.env.SERVICE_WORKER_FILE, { }, { label: i18n.global.t("de-sau"), - round: true, + noCaps: true, }, ], })