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

Method updater

renderer/renderJS/setup_ui.js:200–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 const buttons = node.querySelector('.found_paths')
199
200 const updater = () => {
201 window.settings.get(fullKey).then((value) => {
202 buttons.innerHTML = ''
203 node.querySelector('.current_game_path').textContent = value !== '' ? value : '--'
204
205 if ( this.wizard.games[iVer].length === 0 ) {
206 buttons.appendChild(I18N.__('wizard_step_4_fail_exe', ['text-center', 'd-block']))
207 } else {
208 for ( const gamePath of this.wizard.games[iVer] ) {
209 buttons.appendChild(this.#doButton(
210 fullKey,
211 gamePath[1],
212 value,
213 gamePath[0]
214 ))
215 }
216 }
217 })
218 }
219
220 this.update.push(updater)
221 return node

Callers

nothing calls this directly

Calls 2

#doButtonMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected