Whoops I forgot about this man

This commit is contained in:
Frolleks 2022-03-22 14:25:52 +07:00
parent eccff4aafc
commit 7c76b042f9

11
preload.js Normal file
View file

@ -0,0 +1,11 @@
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element) element.innerText = text
}
for (const type of ['chrome', 'node', 'electron']) {
replaceText(`${type}-version`, process.versions[type])
}
})