Skip to content

Commit

Permalink
fix module lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Nov 16, 2024
1 parent a244f09 commit 861b453
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const ModulePreload = component$(() => {

const startPreloading = () => {
const stateScript = document.querySelector('script[type="qwik/state"]');
if (!stateScript?.textContent) return;
if (!stateScript?.textContent) {
return;
}

const state = JSON.parse(stateScript.textContent);
const qChunks = new Set<string>();
Expand Down

0 comments on commit 861b453

Please sign in to comment.