mirror of
https://github.com/QYG2297248353/IYUUPlus-Windows.git
synced 2024-11-10 14:37:04 +08:00
10 lines
355 B
JavaScript
10 lines
355 B
JavaScript
|
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])
|
||
|
}
|
||
|
})
|