mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(vue): prevent error from being thrown when testing on certain jest runners (#23421)
resolves #23397
This commit is contained in:
@ -201,7 +201,6 @@ export const setupConfig = (config: IonicConfig) => {
|
||||
const win = window as any;
|
||||
const Ionic = win.Ionic;
|
||||
if (Ionic && Ionic.config && Ionic.config.constructor.name !== 'Object') {
|
||||
console.error('ionic config was already initialized');
|
||||
return;
|
||||
}
|
||||
win.Ionic = win.Ionic || {};
|
||||
|
Reference in New Issue
Block a user