feat: add sync-url script

This commit is contained in:
Axel Cocat 2022-01-06 23:05:13 +01:00
parent 1a682409a8
commit 34d9d3960a
2 changed files with 5 additions and 0 deletions

3
static/js/sync-url.js Normal file
View file

@ -0,0 +1,3 @@
window.parent.postMessage({
url: window.location.pathname,
}, "*");

View file

@ -7,6 +7,8 @@
<title>{{title}}</title> <title>{{title}}</title>
<link rel="stylesheet" href="/css/armory.css"> <link rel="stylesheet" href="/css/armory.css">
<script type="application/javascript" src="/js/sync-url.js"></script>
</head> </head>
<body> <body>