Skip to content

Commit

Permalink
use logic OR instead of binary OR for loading check
Browse files Browse the repository at this point in the history
  • Loading branch information
xfsnowind committed Dec 26, 2023
1 parent bec4567 commit 3e6227b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const makeImport = (
file.absolute
}";
const oldLoad = decodeURI(document.location.pathname).includes("${file.absolute}");
return newLoad | oldLoad;
return newLoad || oldLoad;
},
load: () => import(${magicComments} "${file.absolute}"),
absolute: "${file.absolute.split(path.sep).join(path.posix.sep)}",
Expand Down

0 comments on commit 3e6227b

Please sign in to comment.