-
- Downloads
Add getShadowRootDocument() helper
In case the scoped registry polyfill is loaded we need to create elements inside of the shadowroot. getShadowRootDocument() returns the polyfilled shadowroot, or in case the polyfill is not loaded just return the global document, which works in case there are no scoped registries. In case we get something like https://github.com/open-wc/open-wc/pull/2389 this will be usefull. Also it makes IDE completion work + eslint.
parent
a9e8970d
No related branches found
No related tags found
Checking pipeline status
Showing
- packages/app-shell/src/app-shell.js 2 additions, 8 deletionspackages/app-shell/src/app-shell.js
- packages/common/src/utils.js 20 additions, 0 deletionspackages/common/src/utils.js
- packages/common/test/unit.js 11 additions, 1 deletionpackages/common/test/unit.js
- packages/file-handling/src/nextcloud-file-picker.js 2 additions, 2 deletionspackages/file-handling/src/nextcloud-file-picker.js
Loading
Please register or sign in to comment