Skip to content

Commit 2089b0a

Browse files
Install polyfill when upgrade is not a function
1 parent f91938f commit 2089b0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/custom-elements/ts_src/custom-elements.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ if (
5656
!priorCustomElements ||
5757
priorCustomElements['forcePolyfill'] ||
5858
typeof priorCustomElements['define'] != 'function' ||
59-
typeof priorCustomElements['get'] != 'function'
59+
typeof priorCustomElements['get'] != 'function' ||
60+
typeof priorCustomElements['upgrade'] != 'function'
6061
) {
6162
installPolyfill();
6263
}

0 commit comments

Comments
 (0)