From d21f3db0f2e874a6031bcc83e83461827a390c4d Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Mon, 6 Sep 2021 15:54:55 +0530 Subject: [PATCH] Fix a JS example JS example in `XSRF and the frontend` missed a `}` --- servant-auth-server/README.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servant-auth-server/README.lhs b/servant-auth-server/README.lhs index 6e55621..9dba4ac 100644 --- a/servant-auth-server/README.lhs +++ b/servant-auth-server/README.lhs @@ -252,7 +252,7 @@ reading the cookie. For jQuery, and with the default values, that might be: var token = (function() { r = document.cookie.match(new RegExp('XSRF-TOKEN=([^;]+)')) if (r) return r[1]; -)(); +})(); $.ajaxPrefilter(function(opts, origOpts, xhr) {