fix(vue): prevent error from being thrown when testing on certain jest runners (#23421)

resolves #23397
This commit is contained in:
Liam DeBeasi
2021-06-07 10:49:19 -04:00
committed by GitHub
parent f008628851
commit 60bedb5599

View File

@ -201,7 +201,6 @@ export const setupConfig = (config: IonicConfig) => {
const win = window as any; const win = window as any;
const Ionic = win.Ionic; const Ionic = win.Ionic;
if (Ionic && Ionic.config && Ionic.config.constructor.name !== 'Object') { if (Ionic && Ionic.config && Ionic.config.constructor.name !== 'Object') {
console.error('ionic config was already initialized');
return; return;
} }
win.Ionic = win.Ionic || {}; win.Ionic = win.Ionic || {};