MCPcopy Index your code
hub / github.com/MALSync/MALSync / hasMissingPermissions

Function hasMissingPermissions

src/utils/customDomains.ts:107–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107export async function hasMissingPermissions(): Promise<boolean> {
108 if (api.type !== 'webextension') return false;
109 const missingPermissions = new MissingPermissions();
110 await missingPermissions.init();
111 const missing = missingPermissions.getMissingPermissions(api.settings.get('customDomains'));
112 con.m('Missing Permissions').log(missing);
113 return Boolean(missing.length);
114}
115
116function getOrigins(permissions: domainType[]) {
117 return permissions.filter(perm => isValidPattern(perm.domain)).map(perm => perm.domain);

Callers 1

startMethod · 0.90

Calls 3

initMethod · 0.95
getMissingPermissionsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected