can show screen with Electron

This commit is contained in:
2022-09-12 20:36:26 +02:00
parent fb69de40d0
commit a9ad4a968a
5 changed files with 107 additions and 51 deletions
+10
View File
@@ -0,0 +1,10 @@
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element) element.innerText = text
}
for (const dependency of ['chrome', 'node', 'electron']) {
replaceText(`${dependency}-version`, process.versions[dependency])
}
})