forked from iffy/electron-updater-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.html
33 lines (32 loc) · 871 Bytes
/
version.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Electron Updater Example</title>
</head>
<body>
Current version: <span id="version">vX.Y.Z</span>
<div id="messages"></div>
<div>
Nuova Versione :)!
</div>
<div>
Un'altra nuova version :)!
</div>
<div>
Un'altra versione bellissima!
</div>
<script>
// Display the current version
let version = window.location.hash.substring(1);
document.getElementById('version').innerText = version;
// Listen for messages
const { ipcRenderer } = require('electron');
ipcRenderer.on('message', function (event, text) {
var container = document.getElementById('messages');
var message = document.createElement('div');
message.innerHTML = text;
container.appendChild(message);
});
</script>
</body>
</html>