rivia 0.0.19 → 0.0.21
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 +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1256,6 +1256,7 @@ var RIVIA_TOUR = function() {
|
|
|
1256
1256
|
user_var12 = tourState.user_var1 || "Guest_User";
|
|
1257
1257
|
STATE.title = tourState.title || "Untitled Tour";
|
|
1258
1258
|
STATE.publish = tourState.publish || false;
|
|
1259
|
+
window.sessionStorage.removeItem("rivia_tour_state");
|
|
1259
1260
|
if (STATE.tips?.length > 0) {
|
|
1260
1261
|
setTimeout(() => {
|
|
1261
1262
|
showStep(STATE.tourIndex, STATE.isPreviewMode);
|
|
@@ -1263,6 +1264,7 @@ var RIVIA_TOUR = function() {
|
|
|
1263
1264
|
}
|
|
1264
1265
|
} catch (error) {
|
|
1265
1266
|
console.warn("Error restoring tour state:", error);
|
|
1267
|
+
window.sessionStorage.removeItem("rivia_tour_state");
|
|
1266
1268
|
}
|
|
1267
1269
|
}
|
|
1268
1270
|
async function createTooltip({
|
|
@@ -3093,7 +3095,7 @@ var RIVIA_TOUR = function() {
|
|
|
3093
3095
|
}
|
|
3094
3096
|
showStep(STATE.tourIndex, true);
|
|
3095
3097
|
}
|
|
3096
|
-
|
|
3098
|
+
function cleanUrlForStorage(url) {
|
|
3097
3099
|
if (!url || !url.trim()) return url;
|
|
3098
3100
|
try {
|
|
3099
3101
|
const urlObj = new URL(url);
|