diff --git a/core b/core index 0ca27dfb..17d163e8 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 0ca27dfbbe638a6d168235a6fccd3a10bd118781 +Subproject commit 17d163e897346ba75adf043e6e64ff67313a64f4 diff --git a/extension/main.js b/extension/main.js index d0a91302..5ff1fa54 100644 --- a/extension/main.js +++ b/extension/main.js @@ -37,9 +37,9 @@ function getPlatformOs() { }); } -async function start(el, placeholder) { +async function start(el, icon, placeholder) { const defaultSuggestion = `Search std docs, external docs (~,@), crates (!), attributes (#), books (%), clippy lints (>), and error codes, 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. diff --git a/extension/manage/js/index.js b/extension/manage/js/index.js index 3f33d4c8..7fea18cb 100644 --- a/extension/manage/js/index.js +++ b/extension/manage/js/index.js @@ -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!`); })();