allow to open link in new tab
This commit is contained in:
parent
655ac16f38
commit
ba2022c465
5 changed files with 26 additions and 3 deletions
|
@ -11,7 +11,11 @@ consoleFrames.initialize(window.document);
|
|||
const startFollows = (newTab) => {
|
||||
let follow = new Follow(window.document, newTab);
|
||||
follow.onActivated((element) => {
|
||||
element.click();
|
||||
browser.runtime.sendMessage({
|
||||
type: messages.OPEN_URL,
|
||||
url: element.href,
|
||||
newTab
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue