Commit 92f5361c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Nate Graham
Browse files

[History Runner] Request favicon with device pixel ratio

Ensures crisp icon in KRunner


(cherry picked from commit dc031190)
parent d4ee6bdc
......@@ -35,7 +35,8 @@ function getFavicon(url) {
}
reader.readAsDataURL(xhr.response);
}
xhr.open("GET", "chrome://favicon/" + url);
const favIconUrl = "chrome://favicon/size/16@" + window.devicePixelRatio + "x/" + url;
xhr.open("GET", favIconUrl);
xhr.responseType = "blob";
xhr.send();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment