This commit is contained in:
2026-05-06 09:41:30 +02:00
commit fef960d4ce
11 changed files with 1896 additions and 0 deletions

10
preload.js Normal file
View File

@@ -0,0 +1,10 @@
// 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']) {
document.getElementById(`${versionType}-version`).innerText = process.versions[versionType]
}
document.getElementById('serialport-version').innerText = require('serialport/package').version
})