Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
Commitedf446fae669f3370609f5a955c3d6c863a93524 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 22:00:21 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 22:21:31 +0200
Filesc46984167cc5b79c51b243602f7a4837d428fd82 /views/archive/index.php
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar.gz
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.zip
Parent73ad3e330be1a6849269fec5d4b7b42b0330cede (diff)
feat: Replace sessionStorage with (custom) cookieStorage
1 files changed, 0 insertions, 10 deletions
-rw-r--r--views/archive/index.php10
diff --git a/views/archive/index.php b/views/archive/index.php
index ac6ada6..7de2dff 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -18,13 +18,8 @@
<form action="#" method="POST">
<input type="hidden" name="page_url" value="<?= $url ?>">
- <input id="token" type="hidden" name="token" value="">
<input type="submit" value="Archive Now!">
</form>
- <script type="text/javascript">
- const tokenInput = document.getElementById('token');
- tokenInput.value = sessionStorage.getItem('token');
- </script>
<!-- Button to add to list -->
<!-- Button to delete -->
@@ -61,12 +56,7 @@
<h2>"<?= $url ?>" hasn't been archived yet!</h2>
<form action="#" method="POST">
<input type="hidden" name="page_url" value="<?= $url ?>">
- <input id="token" type="hidden" name="token" value="">
<input type="submit" value="Archive Now!">
</form>
- <script type="text/javascript">
- const tokenInput = document.getElementById('token');
- tokenInput.value = sessionStorage.getItem('token');
- </script>
<?php endif; ?>