Skip to content

Commit

Permalink
πŸ‘‰ fix selectors with ?
Browse files Browse the repository at this point in the history
added conditional so that it gets skipped when not found
  • Loading branch information
TheCubiq committed Aug 21, 2022
1 parent 67c39a4 commit 0d058a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default function Selectors() {
return {
editor: document.querySelector("#editor-base"),
header: document.querySelector("header"),
playPanel: document.getElementsByClassName("MuiDivider-flexItem")[1].parentElement,
playPanel: document.getElementsByClassName("MuiDivider-flexItem")[1]?.parentElement,
rootStyle: document.documentElement.style,
clipPanel: document.getElementsByClassName("ps")[3],
fullBottomPanel: document.querySelector("#editor-base > div > div > div.mosaic-root > div:nth-child(7)"),
Expand Down

0 comments on commit 0d058a8

Please sign in to comment.