+
+
+ Multi-page navigation test
++ Navigate between this page and the original demo while the chat pill remains visible. This shows how the + widget survives DOM swaps. +
+ +
+
+
+ Multi-page steps
+-
+
- Open the chat with the Open Chat button. +
- Switch to the original demo (same domain, different page). +
- Watch for the pill/modal—they should stay visible without rebuilding the DOM elements. +
-
+ Go back to this page and open the chat again to confirm the session persisted via
+
localStorage. +
+
+
+ Why this demo exists
+
+ Some frameworks replace the <body> and <head> on each navigation. The
+ chat widget now marks its elements as permanent and watches for missing parents so the UI never flashes
+ away.
+
+ Feel free to script rapid navigation between these pages to reproduce the bug you observed. +
+
+