From 46f1ba92d3ebc470a83ffae655a89db918340c83 Mon Sep 17 00:00:00 2001 From: Malcolm Young <428782+malcomio@users.noreply.github.com> Date: Wed, 1 Jul 2020 17:32:04 +0100 Subject: [PATCH] wrap selector in quotes --- jquery.cookiecuttr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.cookiecuttr.js b/jquery.cookiecuttr.js index 564f554..9cf9552 100644 --- a/jquery.cookiecuttr.js +++ b/jquery.cookiecuttr.js @@ -218,7 +218,7 @@ // for top bar $('.cc-cookie-accept, .cc-cookie-decline').click(function (e) { e.preventDefault(); - if ($(this).is('[href$=#decline]')) { + if ($(this).is("[href$='#decline']")) { $.cookie("cc_cookie_accept", null, { path: '/' }); @@ -287,4 +287,4 @@ location.reload(); }); }; -})(jQuery); \ No newline at end of file +})(jQuery);