From 80ed062487356310efd5e4a76f1f8978dc836a4f Mon Sep 17 00:00:00 2001 From: Shin'ya UEOKA Date: Mon, 30 Sep 2019 06:15:46 +0000 Subject: Add :help command to open help --- src/background/presenters/HelpPresenter.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/background/presenters/HelpPresenter.ts (limited to 'src/background/presenters') 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 { + await browser.tabs.create({ url, active: true }); + } +} -- cgit v1.2.3