_satellite.cookie.set: update signature to allow setting the third parameter as an integer rather than object | Community
Skip to main content
BogdanNazaruk
July 14, 2021
New

_satellite.cookie.set: update signature to allow setting the third parameter as an integer rather than object

  • July 14, 2021
  • 0 replies
  • 595 views

Description - the cookie set function's third argument is an object. Please allow it to be an integer for those who used to old syntax.

Why is this feature important to you - seeing too many developers supplying an integer there and failing.

How would you like the feature to work - check the type of the third argument and if it's an int, just use it for days as you do with the object

Current Behaviour - supplying int does nothing.