diff --git a/static/bookmodal.js b/static/bookmodal.js index cf399bf..5b20c41 100644 --- a/static/bookmodal.js +++ b/static/bookmodal.js @@ -1,5 +1,5 @@ (function() { - if (document.cookie.indexOf('bookSeen=true') > -1) { + if (document.cookie.indexOf('bookSeen=true') > -1 || /book/.test(window.location.pathname)) { return; } document.cookie = `bookSeen=true; ${document.cookie}; path=/; max-age=${60*60*24*7}`;