Content Security Policy (CSP) compatibility beta.
This commit is contained in:
@@ -24,13 +24,9 @@ function addLoginAttempts()
|
||||
}
|
||||
|
||||
function setTimeZoneCookie()
|
||||
{
|
||||
?>
|
||||
<script>
|
||||
document.cookie = "user_timezone=" + Intl.DateTimeFormat().resolvedOptions().timeZone + "; path=/";
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
{ ?>
|
||||
<script src="/src/js/timeZoneCookie.js"></script>
|
||||
<?php }
|
||||
|
||||
function getUserTimezone()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user