Gregory Ballantine
da7ca2029c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
const appInfo = require('./package.json');
|
|
|
|
// All of the Node.js APIs are available in the preload process.
|
|
// It has the same sandbox as a Chrome extension.
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
const replaceText = (selector, text) => {
|
|
const element = document.getElementById(selector)
|
|
if (element) element.innerText = text
|
|
}
|
|
|
|
replaceText('app-version', appInfo.version);
|
|
});
|