Skip to content

Commit 3badf6b

Browse files
committed
Use ?? for base default
1 parent 10c2b95 commit 3badf6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const trimSlashes = (url: string): string => {
4646
export const resolveBase = (base?: string): string => {
4747
// After resolving the base will either start with / or be an empty string.
4848
if (!base || base.startsWith("/")) {
49-
return base || ""
49+
return base ?? ""
5050
}
5151
const parts = location.pathname.split("/")
5252
parts[parts.length - 1] = base

0 commit comments

Comments
 (0)