as-ideas / oil

191 stars 56 forks source link

cookie_expires_in_days causes a TypeError #272

Closed paulgreg closed 3 years ago

paulgreg commented 5 years ago

When the option "cookie_expires_in_days": "10" is added in the configuration of oil.js (version 1.3.5), clicking on the accept button causes a TypeError: i.expires.toUTCString is not a function in oilOptIn function.

nielsnuebel commented 4 years ago

@paulgreg this is also correct because "10" is a string and 10 is an integer you must omit the "".