(id: string, domain = '', path = '/')
| 23 | }); |
| 24 | |
| 25 | public static delete(id: string, domain = '', path = '/') { |
| 26 | if (!CookieStorage.enabled()) { |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | const expires = new Date(Date.now() - __1day).toUTCString(); |
| 31 | |
| 32 | document.cookie = `${id}=;expires=${expires};domain=${domain};path=${path}`; |
| 33 | } |
| 34 | |
| 35 | public static get(id: string) { |
| 36 | if (!id.length) { |