- Affected version
- 2.1.4
Unless I'm missing something, using the set function on
XF.ToggleStorageData
and passing an expiry seconds value has no effect for cookies. It looks syncToStorage
in XF.ToggleStorageDataInstance
does not include it when writing.
JavaScript:
let storage = XF.ToggleStorageData.getInstance('cookie');
storage.set('x', 'y', 'z', 315360000);