Skip to content

Commit

Permalink
Install polyfill when upgrade is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-Veltmans committed Oct 17, 2023
1 parent f91938f commit f8382fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/custom-elements/ts_src/custom-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ if (
!priorCustomElements ||
priorCustomElements['forcePolyfill'] ||
typeof priorCustomElements['define'] != 'function' ||
typeof priorCustomElements['get'] != 'function'
typeof priorCustomElements['get'] != 'function' ||
typeof priorCustomElements['upgrade'] != 'function'
) {
installPolyfill();
}
Expand Down

0 comments on commit f8382fe

Please sign in to comment.