Whoops I forgot about this man

This commit is contained in:
Frolleks 2022-03-22 14:25:52 +07:00
parent eccff4aafc
commit 7c76b042f9
1 changed files with 11 additions and 0 deletions

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])
}
})