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

Method sendAndFocusValid

lib/modAssist_window_lib.js:565–570  ·  view source on GitHub ↗

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

(name, command, ...args)

Source from the content-addressed store, hash-verified

563 * @param {...any} args
564 */
565 sendAndFocusValid(name, command, ...args) {
566 if ( this.isValid(name) ) {
567 this.win[name].focus()
568 this.sendToWindow(name, command, ...args)
569 }
570 }
571 // #endregion
572
573 /**

Callers 2

modAssist_main.jsFile · 0.80

Calls 2

isValidMethod · 0.80
sendToWindowMethod · 0.80

Tested by

no test coverage detected