(url)
| 285 | } |
| 286 | |
| 287 | function togglePin(url) { |
| 288 | const list = getFavorites(); |
| 289 | const item = list.find(f => f.url === url); |
| 290 | if (item) { |
| 291 | item.pinned = !item.pinned; |
| 292 | setFavorites(list); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | function updateFavoriteRemark(url, remark) { |
| 297 | const list = getFavorites(); |
no test coverage detected