IYUUPlus-Windows/preload.js

10 lines
355 B
JavaScript
Raw Normal View History

2024-06-27 17:29:25 +08:00
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])
}
})