diff options
author | yoloClin <yoloclin@github.com> | 2020-08-02 13:52:56 +1000 |
---|---|---|
committer | yoloClin <yoloclin@github.com> | 2020-08-02 13:52:56 +1000 |
commit | d1352221461a6bcac59c21eeefb785e75f78a0f8 (patch) | |
tree | 6d0b9989c3c47946bd2e641699ac54a78bfd84fd /src/content/usecases | |
parent | 6e3cb8ae82d676e831b448903c4d68a10a3c0ec5 (diff) |
When no href value exists on a link the user selects to follow, attempt to click() the link to blindly trigger any JS events bound to it
Diffstat (limited to 'src/content/usecases')
-rw-r--r-- | src/content/usecases/FollowSlaveUseCase.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content/usecases/FollowSlaveUseCase.ts b/src/content/usecases/FollowSlaveUseCase.ts index 971ecee..56c8883 100644 --- a/src/content/usecases/FollowSlaveUseCase.ts +++ b/src/content/usecases/FollowSlaveUseCase.ts @@ -69,6 +69,7 @@ export default class FollowSlaveUseCase { } // eslint-disable-next-line no-script-url if (!url || url === "#" || url.toLowerCase().startsWith("javascript:")) { + hint.click(); return; } await this.tabsClient.openUrl(url, openNewTab, background); |