* zin: skip to handle global event from target with class "not-open-url".

This commit is contained in:
sunhao
2024-05-15 09:36:24 +08:00
parent b900318557
commit 5663d35a8a
+3 -1
View File
@@ -1404,7 +1404,9 @@
if(e.defaultPrevented) return;
if(isInAppTab) window.parent.$('body').trigger('click');
const $link = $(e.target).closest('a,.open-url');
const $target = $(e.target);
if($target.closest('.not-open-url').length) return;
const $link = $target.closest('a,.open-url');
if(!$link.length || $link.hasClass('ajax-submit') || $link.attr('download') || $link.attr('data-on') || $link.hasClass('show-in-app') || $link.hasClass('not-open-url') || ($link.attr('target') || '')[0] === '_') return;
const href = $link.attr('href');