From d0dd44bda9f2fcff582dcc0203002b020990228e Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 4 Jan 2021 10:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20improve:=20live=20threshold?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/template/theme-default/home.html | 2 +- resource/template/theme-hotaru/home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/template/theme-default/home.html b/resource/template/theme-default/home.html index 77347b4..bec1161 100644 --- a/resource/template/theme-default/home.html +++ b/resource/template/theme-default/home.html @@ -178,7 +178,7 @@ if (!ns.Host) ns.live = false else { const lastActive = new Date(ns.LastActive).getTime() - if (Date.now() - lastActive > 10 * 1000) { + if (Date.now() - lastActive > 20 * 1000) { ns.live = false } else { ns.live = true diff --git a/resource/template/theme-hotaru/home.html b/resource/template/theme-hotaru/home.html index ded0313..18d1203 100644 --- a/resource/template/theme-hotaru/home.html +++ b/resource/template/theme-hotaru/home.html @@ -244,7 +244,7 @@ if (!ns.Host) ns.live = false else { const lastActive = new Date(ns.LastActive).getTime() - if (Date.now() - lastActive > 10 * 1000) { + if (Date.now() - lastActive > 20 * 1000) { ns.live = false } else { ns.live = true