summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basilisk/components/search/service/nsSearchService.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/basilisk/components/search/service/nsSearchService.js b/basilisk/components/search/service/nsSearchService.js
index 1009051..3cd2531 100644
--- a/basilisk/components/search/service/nsSearchService.js
+++ b/basilisk/components/search/service/nsSearchService.js
@@ -1371,8 +1371,12 @@ Engine.prototype = {
}
let type = chan.contentType;
- if (!type.startsWith("image/"))
- type = "image/x-icon";
+ if (!type.startsWith("image/")) {
+ console.warn(
+ "Search service: Unable to set icon, content type is not an image",
+ contentType);
+ return;
+ }
let dataURL = "data:" + type + ";base64," +
btoa(String.fromCharCode.apply(null, aByteArray));