aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-09-30 06:15:46 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-01 13:21:58 +0000
commit80ed062487356310efd5e4a76f1f8978dc836a4f (patch)
treefec48e1eef7a86dfb1c051f38d201bbd6bf24f42 /src/background/presenters
parent1afdb51feaa860c6dd0542b362925fb553eabf4c (diff)
Add :help command to open help
Diffstat (limited to 'src/background/presenters')
-rw-r--r--src/background/presenters/HelpPresenter.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/background/presenters/HelpPresenter.ts b/src/background/presenters/HelpPresenter.ts
new file mode 100644
index 0000000..f5c3a6b
--- /dev/null
+++ b/src/background/presenters/HelpPresenter.ts
@@ -0,0 +1,10 @@
+import { injectable } from 'tsyringe';
+
+const url = 'https://ueokande.github.io/vim-vixen/';
+
+@injectable()
+export default class HelpPresenter {
+ async open(): Promise<void> {
+ await browser.tabs.create({ url, active: true });
+ }
+}