add instruction to domain whitelist error message

This commit is contained in:
Jorrin
2024-03-01 21:57:18 +01:00
parent 6d1fa16553
commit 1ac8147cdd

View File

@@ -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.',
);
};