From 36c0e88b20757f8dc7fcb916b0586e3d5a9b632e Mon Sep 17 00:00:00 2001 From: Mashiro Date: Wed, 20 Feb 2019 00:20:17 +0800 Subject: [PATCH] bug fix --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 0eedfc3..0ae568e 100644 --- a/functions.php +++ b/functions.php @@ -1353,9 +1353,11 @@ function custom_admin_js() { window.onload=function(){ lazyload(); - document.querySelector("#scheme-tip .notice-dismiss").addEventListener("click", function(){ - location.href="?scheme-tip-dismissed'.BUILD_VERSION.'"; - }); + try{ + document.querySelector("#scheme-tip .notice-dismiss").addEventListener("click", function(){ + location.href="?scheme-tip-dismissed'.BUILD_VERSION.'"; + }); + } catch(e){} } '; }