diff --git a/src/utils/storage.ts b/src/utils/storage.ts index ae06680..738df55 100644 --- a/src/utils/storage.ts +++ b/src/utils/storage.ts @@ -31,5 +31,9 @@ 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'); + const currentDomain = makeUrlIntoDomain(url); + if (!isWhiteListed) + throw new Error( + `${currentDomain} is not whitelisted. Open the extension and click on the power button to whitelist the site.`, + ); };