Skip to content

Commit

Permalink
Show rust icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jun 2, 2024
1 parent bcf3164 commit 007e7ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core
Submodule core updated 1 files
+6 −1 src/omnibox.js
4 changes: 2 additions & 2 deletions extension/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function getPlatformOs() {
});
}

async function start(el, placeholder) {
async function start(el, icon, placeholder) {
const defaultSuggestion = `Search std <match>docs</match>, external <match>docs</match> (~,@), <match>crates</match> (!), <match>attributes</match> (#), <match>books</match> (%), clippy <match>lints</match> (>), and <match>error codes</match>, etc in your address bar instantly!`;
const omnibox = new Omnibox({ el, defaultSuggestion: placeholder || defaultSuggestion, maxSuggestionSize: Compat.omniboxPageSize() });
const omnibox = new Omnibox({ el, icon, defaultSuggestion: placeholder || defaultSuggestion, maxSuggestionSize: Compat.omniboxPageSize() });

// All dynamic setting items. Those items will been updated
// in chrome.storage.onchange listener callback.
Expand Down
2 changes: 1 addition & 1 deletion extension/manage/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,5 @@ async function renderYearList() {
await renderYearList();
})();
(async () => {
await start("#omnibox", `Search rust things instantly!`);
await start("#omnibox", chrome.runtime.getURL("assets/rust.png"), `Search rust things instantly!`);
})();

0 comments on commit 007e7ba

Please sign in to comment.