From ea3f899593f47c1c6fe708495af0a091a3c73d5f Mon Sep 17 00:00:00 2001
From: Kairlec <sunfokairlec@gmail.com>
Date: 星期日, 23 四月 2023 17:08:53 +0800
Subject: [PATCH] fix `Notification is not defined` on Android Webview or under ios16.4

---
 web_src/src/components/dialog/platformEdit.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/web_src/src/components/dialog/platformEdit.vue b/web_src/src/components/dialog/platformEdit.vue
index 0298ee7..be7c505 100644
--- a/web_src/src/components/dialog/platformEdit.vue
+++ b/web_src/src/components/dialog/platformEdit.vue
@@ -157,7 +157,7 @@
         devicePort: null,
         username: null,
         password: null,
-        expires: 300,
+        expires: 3600,
         keepTimeout: 60,
         transport: "UDP",
         characterSet: "GB2312",
@@ -305,7 +305,7 @@
         devicePort: null,
         username: null,
         password: null,
-        expires: 300,
+        expires: 3600,
         keepTimeout: 60,
         transport: "UDP",
         characterSet: "GB2312",
@@ -331,8 +331,8 @@
       return result;
     },
     checkExpires: function() {
-      if (this.platform.enable && this.platform.expires == "0") {
-        this.platform.expires = "300";
+      if (this.platform.enable && this.platform.expires === "0") {
+        this.platform.expires = "3600";
       }
     },
     rtcpCheckBoxChange: function (result){

--
Gitblit v1.8.0