Don't show modal on book page

This commit is contained in:
Madison Scott-Clary
2020-03-03 15:21:20 -08:00
parent 814065fb41
commit ff7a256987

View File

@ -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}`;