Open link as Clean Architecture
This commit is contained in:
parent
42d902982a
commit
0846587baf
5 changed files with 73 additions and 12 deletions
15
src/background/controllers/link.js
Normal file
15
src/background/controllers/link.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import LinkInteractor from '../usecases/link';
|
||||
|
||||
export default class LinkController {
|
||||
constructor() {
|
||||
this.linkInteractor = new LinkInteractor();
|
||||
}
|
||||
|
||||
openToTab(url, tabId) {
|
||||
this.linkInteractor.openToTab(url, tabId);
|
||||
}
|
||||
|
||||
openNewTab(url, openerId, background) {
|
||||
this.linkInteractor.openNewTab(url, openerId, background);
|
||||
}
|
||||
}
|
Reference in a new issue