Cache csrf properties
This commit is contained in:
parent
847d2c544b
commit
a19ee80c1e
3 changed files with 17 additions and 24 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue