From c535ae4415e974e9a0eca02ef2ed1a8b93fb4cff Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 26 Sep 2023 13:05:00 -0500 Subject: [PATCH] Fix bug for without href --- resources/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/common.js b/resources/common.js index d34e259..185eb7c 100644 --- a/resources/common.js +++ b/resources/common.js @@ -387,7 +387,7 @@ function onWindowReady() { }); $('a').click(function() { var href = $(this).attr('href'); - if (href === '#' || href.startsWith("javascript")) { + if (!href || href === '#' || href.startsWith("javascript")) { return; }