-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-popup.html
46 lines (46 loc) · 1.23 KB
/
update-popup.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
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<title>Update Available</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
.popup {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
button {
margin-top: 10px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="popup">
<h2>Update Available</h2>
<p>A new version of Clip Library is available. Would you like to update?</p>
<button id="updateButton">Install Update</button>
</div>
<script>
const { ipcRenderer } = require('electron');
document.getElementById('updateButton').addEventListener('click', () => {
ipcRenderer.send('start-update');
});
</script>
</body>
</html>