(id)
| 320 | constructor() { } |
| 321 | //returns an ffclipboard entry, if id does not exist, returns null |
| 322 | static get(id) { |
| 323 | try { |
| 324 | var ffClipboardObj = JSON.parse(ffClipboard_stored) |
| 325 | } catch (e) { |
| 326 | return null |
| 327 | } |
| 328 | if (ffClipboardObj) { |
| 329 | if (ffClipboardObj[id]) { |
| 330 | return ffClipboardObj[id] |
| 331 | } else { |
| 332 | return null |
| 333 | } |
| 334 | } else { |
| 335 | return null |
| 336 | } |
| 337 | } |
| 338 | //sets ffclipboard contents, if id does not exist, creates it |
| 339 | static set(id, value) { |
| 340 | try { |
no outgoing calls
no test coverage detected