aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryoloClin <yoloclin@github.com>2020-08-02 13:52:56 +1000
committeryoloClin <yoloclin@github.com>2020-08-02 13:52:56 +1000
commitd1352221461a6bcac59c21eeefb785e75f78a0f8 (patch)
tree6d0b9989c3c47946bd2e641699ac54a78bfd84fd /src
parent6e3cb8ae82d676e831b448903c4d68a10a3c0ec5 (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')
-rw-r--r--src/content/usecases/FollowSlaveUseCase.ts1
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);