diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 11:08:46 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 11:09:27 +0200 |
| commit | 76de68d2f3600a7000a054be3f595029b1931e20 (patch) | |
| tree | 35a48cde04501c4992d48f6ed32bb31ea9b597b6 /views/footer.php | |
| parent | 723cf2e6cbbea35e8f365d2287d01acb96f02643 (diff) | |
| download | nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.tar nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.tar.gz nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.zip | |
feat: Authentication logic on every page
Diffstat (limited to 'views/footer.php')
| -rw-r--r-- | views/footer.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/footer.php b/views/footer.php index b457da8..22c4631 100644 --- a/views/footer.php +++ b/views/footer.php @@ -1,3 +1,16 @@ </article> </body> +<script type="text/javascript"> + function eval_callbacks() { + if (authentication_response === null) { + setTimeout(eval_callbacks, 50); + } + else if (authentication_response !== "") { + for (callback of authentication_callbacks) { + callback(authentication_response); + } + } + } + eval_callbacks(); +</script> </html> |
