Skip to content

Commit 4164184

Browse files
committed
Support query keyword in activateBookmark.
1 parent 654edf2 commit 4164184

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

content_scripts/vomnibar.js

+15-11
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@ const Vomnibar = {
2424
});
2525
},
2626

27-
activateBookmarks(sourceFrameId) {
28-
this.open(sourceFrameId, {
29-
completer: "bookmarks",
30-
selectFirst: true,
31-
});
27+
activateBookmarks(sourceFrameId, registryEntry) {
28+
let options = Object.assign({}, registryEntry.options,
29+
{
30+
completer: "bookmarks",
31+
selectFirst: true,
32+
});
33+
this.open(sourceFrameId, options);
3234
},
3335

34-
activateBookmarksInNewTab(sourceFrameId) {
35-
this.open(sourceFrameId, {
36-
completer: "bookmarks",
37-
selectFirst: true,
38-
newTab: true,
39-
});
36+
activateBookmarksInNewTab(sourceFrameId, registryEntry) {
37+
let options = Object.assign({}, registryEntry.options,
38+
{
39+
completer: "bookmarks",
40+
selectFirst: true,
41+
newTab: true,
42+
});
43+
this.open(sourceFrameId, options);
4044
},
4145

4246
activateEditUrl(sourceFrameId) {

0 commit comments

Comments
 (0)