(i, t)
| 575 | return { Accept: "application/json", "Content-Type": "application/json", "Remote-Token": this._token }; |
| 576 | } |
| 577 | fetch(i, t) { |
| 578 | const n = { credentials: "include", headers: this.headers() }; |
| 579 | return t && (n.method = "POST", n.body = t), fetch(i, n).then((s) => s.json()); |
| 580 | } |
| 581 | load(i) { |
| 582 | return i && (this._url = i), this.fetch(this._url).then((t) => this.parse(t)); |
| 583 | } |