mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 14:03:25 +00:00
add instruction to domain whitelist error message
This commit is contained in:
@@ -31,5 +31,8 @@ export const isDomainWhitelisted = async (url: string | undefined) => {
|
||||
|
||||
export const assertDomainWhitelist = async (url: string) => {
|
||||
const isWhiteListed = await isDomainWhitelisted(url);
|
||||
if (!isWhiteListed) throw new Error('Domain is not whitelisted');
|
||||
if (!isWhiteListed)
|
||||
throw new Error(
|
||||
'Domain is not whitelisted. Open the extension and click on the power button to whitelist the domain.',
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user