(options, key)
| 233 | } |
| 234 | |
| 235 | export function removeOptionKey(options, key) { |
| 236 | if (!key) return options; |
| 237 | return options.filter(el => { |
| 238 | if (!el || el === key || (typeof el === 'object' && el.name === key)) return false; |
| 239 | return true; |
| 240 | }); |
| 241 | } |
| 242 | |
| 243 | export function removeFromOptions(key) { |
| 244 | const options = api.settings.get('quicklinks'); |