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

Method setWindowURL

lib/modAssist_window_lib.js:1121–1127  ·  view source on GitHub ↗
(page, query = null)

Source from the content-addressed store, hash-verified

1119
1120 // MARK: reset win URL
1121 setWindowURL(page, query = null) {
1122 if ( ! this.isValid(page) ) { return }
1123 const thisFile = this.winDefs[page].HTMLFile
1124 const thisQuery = query === null ? '' : `?${new URLSearchParams(query).toString()}`
1125
1126 this.win[page].loadURL(`file://${path.join(this.#path.render, thisFile)}${thisQuery}`)
1127 }
1128
1129 /**
1130 * Show a dialog box (sync)

Callers 1

openBaseGameWindowFunction · 0.80

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected