A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
19 lines
489 B
import SettingRepository from '../repositories/setting'; |
|
import TabPresenter from '../presenters/tab'; |
|
|
|
export default class LinkInteractor { |
|
constructor() { |
|
this.settingRepository = new SettingRepository(); |
|
this.tabPresenter = new TabPresenter(); |
|
} |
|
|
|
openToTab(url, tabId) { |
|
return this.tabPresenter.open(url, tabId); |
|
} |
|
|
|
openNewTab(url, openerId, background) { |
|
return this.tabPresenter.create(url, { |
|
openerTabId: openerId, active: !background |
|
}); |
|
} |
|
}
|
|
|