UNPKG

@pushchain/ui-kit

Version:

Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.

16 lines 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ensureWaapInit = void 0; const waap_sdk_1 = require("@human.tech/waap-sdk"); const waap_config_1 = require("./waap.config"); let waapInitialized = false; const ensureWaapInit = (isDarkMode, loginConfig) => { if (typeof window === 'undefined') return; if (waapInitialized) return; (0, waap_sdk_1.initWaaP)((0, waap_config_1.waapInitConfig)(isDarkMode, loginConfig)); waapInitialized = true; }; exports.ensureWaapInit = ensureWaapInit; //# sourceMappingURL=initWaap.js.map