diff --git a/src/Link.js b/src/Link.js index 9261b7f..4727077 100644 --- a/src/Link.js +++ b/src/Link.js @@ -103,6 +103,9 @@ export class Link { } static parseFragment(fragment) { + if (!fragment) { + return null; + } let [linkStr, queryParamsStr] = fragment.split("?"); if (!linkStr.startsWith("#/")) { return null;