From 4f01edb9230f58ff84b0dd892c931ec8ac9aad55 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:56:08 +0200 Subject: move src out of srv, clean up default.nix and Makefile --- srv/src/http/static/utils.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 srv/src/http/static/utils.js (limited to 'srv/src/http/static/utils.js') diff --git a/srv/src/http/static/utils.js b/srv/src/http/static/utils.js deleted file mode 100644 index 96a2950..0000000 --- a/srv/src/http/static/utils.js +++ /dev/null @@ -1,12 +0,0 @@ -const cookies = {}; -const cookieKVs = document.cookie - .split(';') - .map(cookie => cookie.trim().split('=', 2)); - -for (const i in cookieKVs) { - cookies[cookieKVs[i][0]] = cookieKVs[i][1]; -} - -export { - cookies, -} -- cgit v1.2.3