Sentry/preload.js
Gregory Ballantine da7ca2029c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Updated footer info
2022-08-23 19:16:49 -04:00

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);
});