reagent-project/reagent-utils

Passing domain, max-age etc... in set! function of cookies.cljs

simax opened this issue · 1 comments

simax commented

Small bug with the boolean logic in the set! function in cookies.cljs. It should be if-not rather than if

(if-not opts
      (.set goog.net.cookies k content)
      (.set goog.net.cookies k content (or max-age -1) path domain (boolean secure?)))

ah thanks, I just pushed out a new version with the fix