mirror of
https://github.com/servo/servo.git
synced 2025-10-10 05:20:19 +01:00
9 lines
374 B
JavaScript
9 lines
374 B
JavaScript
import {ContentIndexService} from '/gen/third_party/blink/public/mojom/content_index/content_index.mojom.m.js';
|
|
|
|
// Returns a promise if the chromium based browser fetches icons for
|
|
// content-index.
|
|
export async function fetchesIcons() {
|
|
const remote = ContentIndexService.getRemote();
|
|
const {iconSizes} = await remote.getIconSizes();
|
|
return iconSizes.length > 0;
|
|
};
|