From a6a2e1040b680ae81134cebf791d3d78fc70281a Mon Sep 17 00:00:00 2001 From: "630892807@qq.com" <630892807@qq.com> Date: Tue, 9 Mar 2021 22:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=85=B3=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/functions.js b/static/js/functions.js index 5c8eb53..3523595 100644 --- a/static/js/functions.js +++ b/static/js/functions.js @@ -36,6 +36,9 @@ function notify(title, options, callback) { notification.onclick = function(event) { callback(notification, event); } + setTimeout(function () { + notification.close(); + },3000); } } var titleTimer,titleNum=0;