From 34d9d3960a206e4a1544929abd110750f68db16a Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Thu, 6 Jan 2022 23:05:13 +0100 Subject: [PATCH] feat: add sync-url script --- static/js/sync-url.js | 3 +++ static/layout.html | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 static/js/sync-url.js diff --git a/static/js/sync-url.js b/static/js/sync-url.js new file mode 100644 index 0000000..3d878c2 --- /dev/null +++ b/static/js/sync-url.js @@ -0,0 +1,3 @@ +window.parent.postMessage({ + url: window.location.pathname, +}, "*"); diff --git a/static/layout.html b/static/layout.html index 9bdf4ef..f77d476 100644 --- a/static/layout.html +++ b/static/layout.html @@ -7,6 +7,8 @@ {{title}} + +