MCPcopy Index your code
hub / github.com/FastForwardTeam/FastForward / set

Method set

src/js/injection_script.js:339–353  ·  view source on GitHub ↗
(id, value)

Source from the content-addressed store, hash-verified

337 }
338 //sets ffclipboard contents, if id does not exist, creates it
339 static set(id, value) {
340 try {
341 var ffClipboardObj = JSON.parse(ffClipboard_stored)
342 } catch (e) {
343 return null
344 }
345 if (ffClipboardObj) {
346 ffClipboardObj[id] = value
347 let message = { type: "ffclipboardSet", text: JSON.stringify(ffClipboardObj) }
348 window.postMessage(message, "*") //send message to content script
349 ffClipboard_stored = JSON.stringify(ffClipboardObj)
350 } else {
351 return null
352 }
353 }
354 //deletes ffclipboard contents and frees up storage, if id does not exist, does nothing
355 static free(id) {
356 try {

Callers 9

content_script.jsFile · 0.80
countItFunction · 0.80
resetCounterFunction · 0.80
background.jsFile · 0.80
options.jsFile · 0.80
lFunction · 0.80
wFunction · 0.80
ace.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected