summaryrefslogtreecommitdiff
path: root/reference/js/iife.js
diff options
context:
space:
mode:
Diffstat (limited to 'reference/js/iife.js')
-rw-r--r--reference/js/iife.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/reference/js/iife.js b/reference/js/iife.js
new file mode 100644
index 0000000..43018d5
--- /dev/null
+++ b/reference/js/iife.js
@@ -0,0 +1,10 @@
+(function () {
+ /*
+ We set cookies by default, but we do NOT need consent for these as they
+ are necessary and as per <https://gdpr.eu/cookies>: "To comply with the
+ regulations governing cookies under the GDPR and the ePrivacy Directive
+ you must: ... Receive users’ consent before you use any cookies
+ __except__ strictly necessary cookies..."
+ */
+ setTheme(localStorage.getItem("theme"));
+})();