(compareArray)
| 366 | return Object.fromEntries(serveIPC.compareMap) |
| 367 | }) |
| 368 | function openCompareWindow(compareArray) { |
| 369 | if ( Array.isArray(compareArray) ) { |
| 370 | for ( const compareObj of compareArray ) { |
| 371 | const compareKey = compareObj.internal ? compareObj.key : `${compareObj.source}--${compareObj.key}` |
| 372 | serveIPC.compareMap.set(compareKey, compareObj) |
| 373 | } |
| 374 | } |
| 375 | const curVer = funcLib.prefs.ver() |
| 376 | serveIPC.windowLib.raiseOrOpen(`compare${curVer}`, () => { |
| 377 | serveIPC.windowLib.sendToValidWindow(`compare${curVer}`, 'win:forceRefresh') |
| 378 | }) |
| 379 | } |
| 380 | |
| 381 | |
| 382 | // MARK: basegame |
no test coverage detected