rivia 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4067,7 +4067,10 @@ var triggerEvent = async (message) => {
|
|
|
4067
4067
|
for (let item of window.items) {
|
|
4068
4068
|
console.log("Comparing:", item.event_name, "with", message);
|
|
4069
4069
|
if (item.event_name === message) {
|
|
4070
|
-
|
|
4070
|
+
clean_item = item.url.startsWith("/") ? item.url.slice(1) : item.url;
|
|
4071
|
+
if (!window.storedVisited.includes(clean_item)) {
|
|
4072
|
+
window.storedVisited.push(clean_item);
|
|
4073
|
+
}
|
|
4071
4074
|
sessionStorage.setItem("onboardingVisited", JSON.stringify(window.storedVisited));
|
|
4072
4075
|
window.updateProgress(window.storedVisited);
|
|
4073
4076
|
window.updateProgress2(window.storedVisited);
|