diff --git a/packages/extension-dapp/src/index.ts b/packages/extension-dapp/src/index.ts index eb779eb4..26b68895 100644 --- a/packages/extension-dapp/src/index.ts +++ b/packages/extension-dapp/src/index.ts @@ -40,6 +40,10 @@ export { isWeb3Injected, web3EnablePromise }; // enables all the providers found on the injected window interface export function web3Enable (originName: string): Promise { + if (!originName) { + throw new Error('You must pass a name for your app to the web3Enable function'); + } + web3EnablePromise = documentReadyPromise((): Promise => Promise .all(