Skip to content

Commit

Permalink
[semver:patch] Expect getting message that is not string
Browse files Browse the repository at this point in the history
  • Loading branch information
guzzur authored and DvirMalka committed Oct 25, 2022
1 parent 3d262bc commit 35c071e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/development/strigo.sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -11470,9 +11470,9 @@ ${JSON.stringify(parsedContext)}` : "");
}
function removeLoader() {
const loader = document.getElementById("loader");
loader.remove();
loader?.remove();
const academyHatIcon = document.getElementById("strigo-academy-hat-icon");
academyHatIcon.classList.remove("loader");
academyHatIcon?.classList.remove("loader");
}
function openWidget() {
const widget = document.getElementById("strigo-widget");
Expand Down Expand Up @@ -13363,7 +13363,7 @@ ${JSON.stringify(parsedContext)}` : "");
if (!message) {
return;
}
if (message.startsWith("url-triggered" /* URL_TRIGGERED */)) {
if (message.startsWith?.("url-triggered" /* URL_TRIGGERED */)) {
const urlTriggeredCourses = getSessionValue("urlTriggeredCourses") || [];
const selectedCourseId = message.split("/")[1];
LoggerInstance.info("URL trigger message received", { selectedCourseId, urlTriggeredCourses });
Expand Down
Loading

0 comments on commit 35c071e

Please sign in to comment.