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){} } '; }