Skip to content

Commit

Permalink
element: fix angular#1209, check customElements is null or not
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Mar 29, 2019
1 parent 31d31ce commit f03d9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/custom-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

export function patchCustomElements(_global: any, api: _ZonePrivate) {
const {isBrowser, isMix} = api.getGlobalObjects()!;
if ((!isBrowser && !isMix) || !('customElements' in _global)) {
if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {
return;
}

Expand Down

0 comments on commit f03d9fa

Please sign in to comment.