WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Fix and simplify cookie writing example #196

Closed lahmatiy closed 3 years ago

lahmatiy commented 3 years ago
  1. URL interface has no domain property but host
  2. new URL(self.location.href) is not needed since self.location has similar interface as URL (see https://html.spec.whatwg.org/multipage/history.html#location, https://html.spec.whatwg.org/multipage/workers.html#workerlocation)
inexorabletash commented 3 years ago

Thanks!