MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / sendToValidWindow

Method sendToValidWindow

lib/modAssist_window_lib.js:555–557  ·  view source on GitHub ↗

* Send a command to a window if it is valid * @param {string} name window * @param {string} command * @param {...any} args

(name, command, ...args)

Source from the content-addressed store, hash-verified

553 * @param {...any} args
554 */
555 sendToValidWindow(name, command, ...args) {
556 if ( this.isValid(name) ) { this.sendToWindow(name, command, ...args) }
557 }
558
559 /**
560 * Send a command to a window if it is valid, and focus it

Callers 14

sendCopyMoveDeleteFunction · 0.80
modAssist_main.jsFile · 0.80
openCompareWindowFunction · 0.80
refreshTransientStatusFunction · 0.80
refreshClientModListFunction · 0.80
Class · 0.80
sendModListMethod · 0.80
refreshL10nMethod · 0.80
fontUpdaterMethod · 0.80
#doCountMethod · 0.80
hideMethod · 0.80
noCountMethod · 0.80

Calls 2

isValidMethod · 0.80
sendToWindowMethod · 0.80

Tested by

no test coverage detected