(pilePath, url, data)
| 48 | } |
| 49 | |
| 50 | set(pilePath, url, data) { |
| 51 | if (pilePath !== this.pilePath) { |
| 52 | this.load(pilePath); |
| 53 | } |
| 54 | |
| 55 | this.links.set(url, data); |
| 56 | this.save(); |
| 57 | |
| 58 | return this.links; |
| 59 | } |
| 60 | |
| 61 | save() { |
| 62 | if (!this.pilePath) return; |