Cache csrf properties

This commit is contained in:
Marwin Hochfelsner 2025-02-28 22:01:23 +01:00
parent 847d2c544b
commit a19ee80c1e
3 changed files with 17 additions and 24 deletions

View file

@ -95,6 +95,9 @@ $(document).ready(function () {
breakpointWidth = 768;
let moreItemWidth = 0;
OSM.csrf = {};
OSM.csrf[($("meta[name=csrf-param]").attr("content"))] = $("meta[name=csrf-token]").attr("content");
function updateHeader() {
const windowWidth = $(window).width();