Start of the About page (WIP)

This commit is contained in:
FallenGravity
2019-10-15 13:03:41 +02:00
parent 6887481b2a
commit f978f2aaf9
12 changed files with 506 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
const {ipcRenderer} = require("electron");
const {
ipcRenderer
} = require("electron");
class About {
constructor() {}
@@ -6,6 +8,13 @@ class About {
renderAbout() {
EthoMainGUI.renderTemplate("about.html", {});
$(document).trigger("render_about");
let shell = require('electron').shell
document.addEventListener('click', function(event) {
if (event.target.tagName === 'A' && event.target.href.startsWith('http')) {
event.preventDefault()
shell.openExternal(event.target.href)
}
})
}
}