summaryrefslogtreecommitdiff
path: root/web/views/header.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/views/header.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/web/views/header.php b/web/views/header.php
index 183f4f4..891e27e 100644
--- a/web/views/header.php
+++ b/web/views/header.php
@@ -1,10 +1,18 @@
-<?php // vi: syntax=php ?>
+<?php /* Copyright (c) 2024 Freya Murphy */ ?>
+<?php /* vi: syntax=php */ ?>
<?php
$self = $this->main->user();
?>
<!DOCTYPE html>
<html>
<head>
+ <script>
+ <?php if ($this->main->session): ?>
+ var jwtStr = <?=json_encode($this->main->session['jwt'])?>;
+ <?php else: ?>
+ var jwtStr = null;
+ <?php endif; ?>
+ </script>
<?php
foreach ($js_files as $js) {
echo $this->main->link_js($js);
@@ -71,4 +79,6 @@
menu.toggleClass('visible');
});
</script>
- </header>
+ </header>
+ <div id="toast-container">
+ </div>