Skip to content

Commit d3cb561

Browse files
author
Jacek Gębal
committed
Update cookie settings to use a shared cookie across pages.
1 parent e51ee7e commit d3cb561

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

site-template/overrides/main.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@
77

88
{% block extrahead %}
99
{{ super() }}
10-
<script>
11-
(function () {
12-
var _get = Storage.prototype.getItem;
13-
var _set = Storage.prototype.setItem;
14-
var SHARED_KEY = '/__consent';
15-
Storage.prototype.getItem = function (key) {
16-
if (key && key.endsWith('.__consent')) return _get.call(this, SHARED_KEY);
17-
return _get.call(this, key);
18-
};
19-
Storage.prototype.setItem = function (key, value) {
20-
if (key && key.endsWith('.__consent')) { _set.call(this, SHARED_KEY, value); return; }
21-
_set.call(this, key, value);
22-
};
23-
})();
24-
</script>
2510
<link rel="stylesheet" href="https://www.utplsql.org/assets/topbar.css">
2611
<script src="https://www.utplsql.org/assets/topbar.js" defer></script>
2712
{% endblock %}

0 commit comments

Comments
 (0)