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