rivia 0.0.41 → 0.0.43

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. 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
- window.storedVisited.push(item.url.startsWith("/") ? item.url.slice(1) : item.url);
4070
+ let 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rivia",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",