arg, forgotten files…
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
class Config {
|
||||
|
||||
constructor() {
|
||||
this.config = {
|
||||
"url": "https://www.tooloop.de",
|
||||
"allowedDomains": [
|
||||
"tooloop.de",
|
||||
"www.tooloop.de"
|
||||
],
|
||||
"logPath": "tooloop-kiosk-browser.log"
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
let config = {
|
||||
"url": "https://www.tooloop.de",
|
||||
"allowedDomains": [
|
||||
"tooloop.de",
|
||||
"www.tooloop.de"
|
||||
],
|
||||
"logPath": "tooloop-kiosk-browser.log"
|
||||
};
|
||||
|
||||
exports.config = config;
|
||||
|
||||
exports.load = () => {
|
||||
console.log(config);
|
||||
};
|
||||
+1
-9
@@ -1,10 +1,2 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
const replaceText = (selector, text) => {
|
||||
const element = document.getElementById(selector)
|
||||
if (element) element.innerText = text
|
||||
}
|
||||
|
||||
for (const type of ['chrome', 'node', 'electron']) {
|
||||
replaceText(`${type}-version`, process.versions[type])
|
||||
}
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user