diff --git a/src/utils/storage.ts b/src/utils/storage.ts index 2237042..738df55 100644 --- a/src/utils/storage.ts +++ b/src/utils/storage.ts @@ -31,8 +31,9 @@ export const isDomainWhitelisted = async (url: string | undefined) => { export const assertDomainWhitelist = async (url: string) => { const isWhiteListed = await isDomainWhitelisted(url); + const currentDomain = makeUrlIntoDomain(url); if (!isWhiteListed) throw new Error( - 'Domain is not whitelisted. Open the extension and click on the power button to whitelist the domain.', + `${currentDomain} is not whitelisted. Open the extension and click on the power button to whitelist the site.`, ); };