Whoops I forgot about this man
This commit is contained in:
parent
eccff4aafc
commit
7c76b042f9
1 changed files with 11 additions and 0 deletions
11
preload.js
Normal file
11
preload.js
Normal 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])
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue