From a6800eef9619b741a4c9a827781a84f6f8a4e62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=82=E9=A3=8E=E4=BB=A3=E7=A0=81?= Date: Sat, 26 Mar 2022 10:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20A=20=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=20href=20=E5=B1=9E=E6=80=A7=E6=97=B6=20link?= =?UTF-8?q?=20=E5=80=BC=E4=B8=BA=20null=20=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E9=83=A8=E5=88=86=20A=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=BA=8B=E4=BB=B6=E4=B8=8D=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/gd-custom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/gd-custom.js b/resources/gd-custom.js index 0d91f2f0..bf8ac6e1 100644 --- a/resources/gd-custom.js +++ b/resources/gd-custom.js @@ -3,6 +3,9 @@ $(function() { $(document).on("click","a",function(event) { var link = $(this).attr("href"); + if ('string' != typeof(link)) { + return; + } if(link.indexOf(":")>=0){ emitClickedEvent(link); return false;