forked from develar/electron-updater
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathupdate.html
31 lines (30 loc) · 870 Bytes
/
update.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
<!DOCTYPE html>
<html>
<head>
<title>Updating...</title>
<script src="node_modules/spin/spin.js"></script>
<link href="update.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="container">
<div id="spinner"></div>
<div class="messages">
<h1>Updating...</h1>
<p id="name"></p>
</div>
</div>
</body>
<script>
var electron = require('electron'),
ipc = electron.ipcRenderer;
document.addEventListener("DOMContentLoaded", function(event) {
var spinnerElement = document.getElementById('spinner');
var nameElement = document.getElementById('name');
new Spinner({color:'#000', lines: 12}).spin(spinnerElement);
ipc.on('initialize', function(event, arg) {
nameElement.innerHTML = arg.appName;
});
ipc.send('initialize');
});
</script>
</html>