diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-10-01 13:37:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 13:37:09 +0000 |
commit | 620d4bc03e11ae88e2162cb4acdf88b6bded50e5 (patch) | |
tree | 6d1ed59cde68ff0cb721e6ac0d3c9554a07bc2bf /src/background/presenters | |
parent | 1afdb51feaa860c6dd0542b362925fb553eabf4c (diff) | |
parent | cb08141a55e9f067f73f3d9c387c6af5bb05b608 (diff) |
Merge pull request #649 from ueokande/help-page
Add :help command to show help page
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 }); + } +} |