@thirdweb-dev/wallets
Version:
<p align="center"> <br /> <a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/legacy_packages/sdk/logo.svg?raw=true" width="200" alt=""/></a> <br /> </p> <h1 align="center">thirdweb Wallet SDK</h1> <p align="center"> <a h
18 lines (15 loc) • 402 B
JavaScript
import { a as assertWindowEthereum } from './assertWindowEthereum-2bcf9787.esm.js';
/**
* @internal
*/
function getInjectedCoreWalletProvider() {
if (typeof window === "undefined") {
return;
}
if (assertWindowEthereum(globalThis.window)) {
if (globalThis.window.ethereum && window.avalanche) {
return window.avalanche;
}
}
}
export { getInjectedCoreWalletProvider as g };