We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e71592 commit 8a6b38eCopy full SHA for 8a6b38e
1 file changed
src/vs/base/browser/dom.ts
@@ -784,11 +784,11 @@ function getSharedStyleSheet(): HTMLStyleElement {
784
}
785
786
function getDynamicStyleSheetRules(style: any) {
787
- if (style && style.sheet && style.sheet.rules) {
+ if (style?.sheet?.rules) {
788
// Chrome, IE
789
return style.sheet.rules;
790
791
- if (style && style.sheet && style.sheet.cssRules) {
+ if (style?.sheet?.cssRules) {
792
// FF
793
return style.sheet.cssRules;
794
0 commit comments