aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/public
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-17 08:33:02 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-17 08:33:02 +0800
commit9384c507ac29043d0d2f68bef3dde94a43282d09 (patch)
tree88e40f01786aef6674c4244bb42705e49506860f /packages/instant/public
parentac942faa258f604f4f6171759f6bcdf786317d29 (diff)
downloaddexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar.gz
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar.bz2
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar.lz
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar.xz
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.tar.zst
dexon-sol-tools-9384c507ac29043d0d2f68bef3dde94a43282d09.zip
feat: add isInstantRendered check to safeguard against double renders and double removes
Diffstat (limited to 'packages/instant/public')
-rw-r--r--packages/instant/public/index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html
index 039f8b781..557cfa3dc 100644
--- a/packages/instant/public/index.html
+++ b/packages/instant/public/index.html
@@ -27,6 +27,10 @@
<body>
<div id="zeroExInstantContainer"></div>
<script>
+ // Simulate history
+ window.history.pushState({ page: 1 }, '0x Instant');
+ window.history.pushState({ page: 2 }, '0x Instant');
+ window.history.pushState({ page: 3 }, '0x Instant');
const removeUndefined = (obj) => {
for (let k in obj) if (obj[k] === undefined) delete obj[k];
return obj;