Skip to content

Commit 9e944af

Browse files
committed
Update index.html
1 parent beba504 commit 9e944af

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

index.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,21 @@
3535
<meta name="next-head-count" content="24">
3636
<meta name="robots" content="all">
3737
<script>if (top !== window) { window.location.href = '/redirect' }</script>
38+
<script>
39+
40+
if (localStorage.getItem('installed')) {
41+
42+
if ((new URL(window.location.href).search) !== '?p') {
43+
44+
window.location.replace(window.location.origin + '/full');
45+
46+
}
47+
48+
}
49+
50+
</script>
3851
<script defer data-domain="codeit.codes" src="https://plausible.io/js/plausible.js"></script>
39-
52+
4053
<link rel="shortcut icon" href="/icons/android-app-512.png">
4154
<link rel="apple-touch-icon" href="/icons/iphone-app-180.png">
4255

@@ -269,18 +282,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
269282

270283
button.classList.add('cookies');
271284

272-
} else {
273-
274-
if (localStorage.getItem('installed')) {
275-
276-
if ((new URL(window.location.href).search) !== '?p') {
277-
278-
window.location.replace(window.location.origin + '/full');
279-
280-
}
281-
282-
}
283-
284285
}
285286

286287
});
@@ -343,7 +344,7 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
343344

344345
</script>
345346

346-
<script src="/manifest.js"></script>
347+
<script src="/manifest.js"></script>
347348

348349
</body>
349350

0 commit comments

Comments
 (0)