mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 18:13:25 +00:00
Remove requestDomain from messaging
This commit is contained in:
@@ -16,7 +16,8 @@ export function useDomainStorage() {
|
||||
return useStorage<string[]>('domainWhitelist', (v) => v ?? DEFAULT_DOMAIN_WHITELIST);
|
||||
}
|
||||
|
||||
export const isDomainWhitelisted = async (url: string) => {
|
||||
export const isDomainWhitelisted = async (url: string | undefined) => {
|
||||
if (!url) return false;
|
||||
const domain = makeUrlIntoDomain(url);
|
||||
if (!domain) return false;
|
||||
return domainIsInWhitelist(domain);
|
||||
|
Reference in New Issue
Block a user