mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-22 16:41:29 +00:00
Add https hack until official fix available
This commit is contained in:
parent
9b99111ba6
commit
c321114156
|
@ -25,6 +25,13 @@
|
||||||
<div class="container <%= contType %>"><%- body %></div>
|
<div class="container <%= contType %>"><%- body %></div>
|
||||||
<h1><%=page.title%></h1>
|
<h1><%=page.title%></h1>
|
||||||
</main>
|
</main>
|
||||||
|
<!-- temporary https redirect hack -->
|
||||||
|
<script>
|
||||||
|
const host = "fediverse.party";
|
||||||
|
if ((host == window.location.host || "www." + host == window.location.host ) && (window.location.protocol != "https:")) {
|
||||||
|
window.location.protocol = "https";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<!-- temporary gitlab pages redirect hack -->
|
<!-- temporary gitlab pages redirect hack -->
|
||||||
<script>
|
<script>
|
||||||
const url = window.location.href;
|
const url = window.location.href;
|
||||||
|
|
Loading…
Reference in a new issue