Skip to content

Commit

Permalink
[NC]: coderabbit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaschapur committed Jun 27, 2024
1 parent ff2fbc4 commit ce34d9f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/mocksi-lite/content/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import ContentApp from "./ContentApp";

let root: ReactDOM.Root;
async function handlePlayState() {
const alterations = await getAlterations();
if (alterations && alterations.length) {
loadAlterations(alterations, false);
}
const alterations = await getAlterations();
if (alterations?.length) {
loadAlterations(alterations, false);
}
}

function initial() {
Expand All @@ -28,13 +28,13 @@ function initial() {
rootDiv.id = "extension-root";
document.body.appendChild(rootDiv);


chrome.storage.local.get([MOCKSI_RECORDING_STATE], (results) => {
const recordingState: RecordingState | null = results[MOCKSI_RECORDING_STATE];
if (recordingState === RecordingState.HIDDEN) {
handlePlayState();
}
});
chrome.storage.local.get([MOCKSI_RECORDING_STATE], (results) => {
const recordingState: RecordingState | null =
results[MOCKSI_RECORDING_STATE];
if (recordingState === RecordingState.HIDDEN) {
handlePlayState();
}
});
}

document.addEventListener("DOMContentLoaded", initial);
Expand Down

0 comments on commit ce34d9f

Please sign in to comment.