summaryrefslogtreecommitdiff
path: root/_includes/extensions/hashlocate.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-10-03 12:23:29 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-10-03 12:23:29 +0800
commit023ba51a08acba9a46e201a8f6ebd29bc1b51c53 (patch)
tree51f3dda04c6113d04e8cf688caee6b062df7084e /_includes/extensions/hashlocate.html
parentba1db7db3e7bf97de56909b1f13592172d550552 (diff)
perfect: improve browser compatibility
Diffstat (limited to '_includes/extensions/hashlocate.html')
-rw-r--r--_includes/extensions/hashlocate.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/extensions/hashlocate.html b/_includes/extensions/hashlocate.html
index 5194273..fd4a3d6 100644
--- a/_includes/extensions/hashlocate.html
+++ b/_includes/extensions/hashlocate.html
@@ -36,7 +36,7 @@
// The first event occurred
window.addEventListener('click', function(event) {
- if (event.target.matches('a')) {
+ if (event.target.tagName.toLowerCase() == 'a') {
hashLocate(event.target.getAttribute('href'));
}
});