-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
24 lines (22 loc) · 971 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Storage Testing</title>
<script src="https://unpkg.com/dexie@latest/dist/dexie.js"></script>
<link rel="manifest" href="manifest.webmanifest">
</head>
<body>
<p>
<button id="notification" type="button" onclick="Threema.notification()" style="color: red">Notification Permission</button>
<button id="persistent" type="button" onclick="Threema.persist()" style="color: red">Persist Storage</button>
<button type="button" onclick="Threema.usage()">Print DB Usage</button>
</p>
<p>
<input id="target" type="number" min="0" value="12288" step="1024"> MiB
<button type="button" onclick="Threema.populate()">Populate</button>
<button type="button" onclick="Threema.remove()">Remove</button>
</p>
<script src="storage.js"></script>
</body>
</html>