diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-09-30 06:15:46 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-01 13:21:58 +0000 |
commit | 80ed062487356310efd5e4a76f1f8978dc836a4f (patch) | |
tree | fec48e1eef7a86dfb1c051f38d201bbd6bf24f42 /src/background/presenters | |
parent | 1afdb51feaa860c6dd0542b362925fb553eabf4c (diff) |
Add :help command to open help
Diffstat (limited to 'src/background/presenters')
-rw-r--r-- | src/background/presenters/HelpPresenter.ts | 10 |
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 }); + } +} |