Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 657f6fe

Browse files
committed
feat: log a warning if we suspect duplicate Zone install
1 parent 490e6dd commit 657f6fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: zone.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,11 @@ Zone.init = function init () {
682682
Zone.patch();
683683
};
684684

685+
if (window.Zone) {
686+
console.warn('Zone already exported on window the object!');
687+
}
685688

686689
Zone.init();
687-
688690
exports.Zone = Zone;
689691

690692
}((typeof module !== 'undefined' && module && module.exports) ?

0 commit comments

Comments
 (0)