const os = require('os'); const path = require('path'); const fs = require('fs'); const { ipcRenderer } = require('electron'); exports.render_launcher = function (launcher_tmp) { console.log('Rendering based on launcher_tmp...'); console.log('In module_app_ui.js v2 idb to launcher object: ***'); console.log(launcher_tmp); console.log('In module_app_ui.js v2 idb to launcher object: ^^^'); /* if (launcher_tmp.event) { for (var i in launcher_tmp.event) { if (launcher_tmp.event[i].id == event_id) { console.log('*** Event id ('+event_id+') found in launcher object.'); for (var j in launcher_tmp.location) { if (launcher_tmp.location[j].id == event_location_id) { console.log('*** Location id ('+event_location_id+') found in launcher object.'); document.title = launcher_tmp.location[j].name+'@'+launcher_tmp.event[i].name; document.getElementById('location_name').innerHTML = ' '+launcher_tmp.location[j].name+'@'+launcher_tmp.event[i].name; } else { console.log('Event location not it.'); } } } else { console.log('Event not it.'); } } console.log('Data in launcher object'); console.log(launcher_tmp); } else { console.log('Missing data in launcher object'); return false; } */ document.getElementById('event_files_menu').innerHTML = '