From 3badf6bf7b8183f1490d6eab83127b68e47f616c Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 5 Aug 2020 12:52:04 -0500 Subject: [PATCH] Use ?? for base default --- src/common/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.ts b/src/common/util.ts index f0d745826..1bd95ff61 100644 --- a/src/common/util.ts +++ b/src/common/util.ts @@ -46,7 +46,7 @@ export const trimSlashes = (url: string): string => { export const resolveBase = (base?: string): string => { // After resolving the base will either start with / or be an empty string. if (!base || base.startsWith("/")) { - return base || "" + return base ?? "" } const parts = location.pathname.split("/") parts[parts.length - 1] = base