When you make any interaction on the page before DOMContentLoaded event has been triggered the library set what-intent item in the sessionStorage even if the data-whatpersist is set to false.
Additionally I have fixed checking the false value from html tag.
@FanFataL apologies for my delay in checking this out! This looks good. Thank you for submitting a PR! I'm merging this in today and will publish an update to NPM.
When you make any interaction on the page before
DOMContentLoaded
event has been triggered the library setwhat-intent
item in the sessionStorage even if thedata-whatpersist
is set tofalse
.Additionally I have fixed checking the
false
value from html tag.