Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Add tab open via voice.
Browse files Browse the repository at this point in the history
  • Loading branch information
acwio committed Sep 27, 2019
1 parent 4f7adc5 commit 3dff9a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions extension/intents/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,17 @@ this.intents.tabs = (function() {
await browser.tabs.remove(activeTab.id);
},
});

this.intentRunner.registerIntent({
name: "tabs.open",
examples: ["open tab"],
match: `
open tab
open a blank tab
open a new tab
`,
async run(desc) {
await browser.tabs.create({ active: true });
},
});
})();

0 comments on commit 3dff9a2

Please sign in to comment.