From 0844279c58b8e828dc39e1776ce7af5348fc49ae Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 30 Aug 2021 12:11:21 -0700 Subject: [PATCH] Error on missing initial hash --- src/Link.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Link.js b/src/Link.js index 079d7be..53459ae 100644 --- a/src/Link.js +++ b/src/Link.js @@ -105,9 +105,10 @@ export class Link { webInstances = getWebInstanceMap(queryParams); } - if (linkStr.startsWith("#/")) { - linkStr = linkStr.substr(2); + if (!linkStr.startsWith("#/")) { + return null; } + linkStr = linkStr.substr(2); const [identifier, eventId] = linkStr.split("/");