// All of the Node.js APIs are available in the preload process. // It has the same sandbox as a Chrome extension. window.addEventListener('DOMContentLoaded', () => { for (const versionType of ['chrome', 'electron', 'node']) { console.log(`${versionType}-version`, process.versions[versionType]); } });