aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/background/presenters/tab.js (renamed from src/background/repositories/tab.js)2
-rw-r--r--src/background/usecases/version.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/background/repositories/tab.js b/src/background/presenters/tab.js
index 16989e1..8f60535 100644
--- a/src/background/repositories/tab.js
+++ b/src/background/presenters/tab.js
@@ -1,4 +1,4 @@
-export default class TabRepository {
+export default class TabPresenter {
create(url) {
browser.tabs.create({ url, });
}
diff --git a/src/background/usecases/version.js b/src/background/usecases/version.js
index a681bdf..a71f90d 100644
--- a/src/background/usecases/version.js
+++ b/src/background/usecases/version.js
@@ -1,12 +1,12 @@
import manifest from '../../../manifest.json';
import VersionRepository from '../repositories/version';
-import TabRepository from '../repositories/tab';
+import TabPresenter from '../presenters/tab';
import Notifier from '../infrastructures/notifier';
export default class VersionInteractor {
constructor() {
this.versionRepository = new VersionRepository();
- this.tabRepository = new TabRepository();
+ this.tabPresenter = new TabPresenter();
this.notifier = new Notifier();
}
@@ -19,7 +19,7 @@ export default class VersionInteractor {
let message = 'Click here to see release notes';
this.notifier.notify(title, message, () => {
let url = this.releaseNoteUrl(manifest.version);
- this.tabRepository.create(url);
+ this.tabPresenter.create(url);
});
this.versionRepository.update(manifest.version);
}