Skip to content

Commit 379eecf

Browse files
authored
Merge pull request #121 from Sebastien-Ahkrin/master
fix: change global to globalThis
2 parents af122b1 + 1fdd2c8 commit 379eecf

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"react": {
1616
"version": "detect"
1717
}
18+
},
19+
"env": {
20+
"es2020": true
1821
}
1922
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ You may pass any props you like to the `root.*` component which will be applied
6565
ShadowRoot.propTypes = {
6666
mode: PropTypes.oneOf(['open', 'closed']),
6767
delegatesFocus: PropTypes.bool,
68-
styleSheets: PropTypes.arrayOf(PropTypes.instanceOf(global.CSSStyleSheet)),
68+
styleSheets: PropTypes.arrayOf(
69+
PropTypes.instanceOf(globalThis.CSSStyleSheet),
70+
),
6971
children: PropTypes.node,
7072
};
7173

src/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function create(options) {
8383
mode: PropTypes.oneOf(['open', 'closed']),
8484
delegatesFocus: PropTypes.bool,
8585
styleSheets: PropTypes.arrayOf(
86-
PropTypes.instanceOf(global.CSSStyleSheet),
86+
PropTypes.instanceOf(globalThis.CSSStyleSheet),
8787
),
8888
ssr: PropTypes.bool,
8989
children: PropTypes.node,

0 commit comments

Comments
 (0)