Skip to content

Commit 7f6cc57

Browse files
committed
Fixed #2047 prompt for search alias cannot contain space in Firefox.
1 parent 8d9319f commit 7f6cc57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content_scripts/ui/omnibar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ function SearchEngine(omnibar, front) {
12901290
const searchEngineIconStorageKey = `surfingkeys.searchEngineIcon.${message.prompt}`;
12911291
const searchEngineIcon = localStorage.getItem(searchEngineIconStorageKey);
12921292
if (searchEngineIcon) {
1293-
self.aliases[message.alias].prompt = `<img src="${searchEngineIcon}" alt=${message.prompt} style="width: 20px;" />`;
1293+
self.aliases[message.alias].prompt = `<img src="${searchEngineIcon}" alt="${message.prompt}" style="width: 20px;" />`;
12941294
} else if (front.topOrigin.startsWith("http")){
12951295
let iconUrl;
12961296
if (message.options?.favicon_url) {
@@ -1306,7 +1306,7 @@ function SearchEngine(omnibar, front) {
13061306
}, function(response) {
13071307
if (response) {
13081308
localStorage.setItem(searchEngineIconStorageKey, response.text);
1309-
self.aliases[message.alias].prompt = `<img src="${response.text}" alt=${message.prompt} style="width: 20px;" />`;
1309+
self.aliases[message.alias].prompt = `<img src="${response.text}" alt="${message.prompt}" style="width: 20px;" />`;
13101310
}
13111311
});
13121312
}

0 commit comments

Comments
 (0)