(key)
| 436 | } |
| 437 | |
| 438 | delete(key) { |
| 439 | this.log(`DELETE ${key}`); |
| 440 | if (key.indexOf("#") !== -1) { |
| 441 | key = key.substr(1); |
| 442 | if (isSurge || isLoon) { |
| 443 | return $persistentStore.write(null, key); |
| 444 | } |
| 445 | if (isQX) { |
| 446 | return $prefs.removeValueForKey(key); |
| 447 | } |
| 448 | if (isNode) { |
| 449 | delete this.root[key]; |
| 450 | } |
| 451 | } else { |
| 452 | delete this.cache[key]; |
| 453 | } |
| 454 | this.persistCache(); |
| 455 | } |
| 456 | |
| 457 | // notification |
| 458 | notify(title, subtitle = "", content = "", options = {}) { |
no test coverage detected