| 111 | } |
| 112 | |
| 113 | function popUIHandlers() { |
| 114 | MA.byIdEventIfExists('loadOverlay_downloadCancelButton', () => { window.main_IPC.cancelDownload() }) |
| 115 | MA.byIdEventIfExists('mismatchLaunchIgnore', () => { window.state.action.launchGame_IGNORE() }) |
| 116 | MA.byIdEventIfExists('mismatchLaunchFix', () => { window.state.action.launchGame_FIX() }) |
| 117 | |
| 118 | MA.byIdEventIfExists('mod_info_input', () => { window.main_IPC.contextInput() }, 'contextmenu') |
| 119 | MA.byIdEventIfExists('mod_info_button', () => { window.state.action.setModInfo() }) |
| 120 | |
| 121 | MA.byIdEventIfExists('prefOverlay-debug', () => { window.main_IPC.dispatch('debug') }) |
| 122 | } |
| 123 | |
| 124 | // MARK: On Load |
| 125 | window.addEventListener('DOMContentLoaded', () => { |