-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTODO
69 lines (58 loc) · 2.59 KB
/
TODO
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
TODO:
* clean up cache when new version is detected!!!
* list on https://www.pwalist.app
* list on https://store.app
* - https://stripe.com for payments???
1 - ML-KEM to replace CryptoJS https://www.npmjs.com/package/mlkem
2 - restore does not work for Secret
3 - If you need high-performance, high-security cryptography,
you may want to consider native libraries or more modern JavaScript libraries
like Web Cryptography API (W3C) :: https://www.w3.org/TR/WebCryptoAPI/
or Forge.
5 - Another use case for env() variables is for desktop Progressive web apps (PWAs);
try it: https://developer.mozilla.org/en-US/docs/Web/CSS/env
6 - how to store PASSWORD in-memory in serviceWorker
if (navigator.serviceWorker.controller) {
const msg = {type: "store-password", password: PASSWORD, tag: "app: setGenericOptions"};
navigator.serviceWorker.controller.postMessage(msg);
}
7 - <img id="editShare"...> does not show showPopup element.
8 - The Google Pay & Wallet Console lets you easily enable seamless payments
on your apps and websites. Here’s your Merchant ID so you can complete your setup now.
NOTE: if you are working with DevTools
make sure that the Bypass for Network checkbox
is unchecked. If it is checked .controller will be null
See:
(1) https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller
"...This property returns null if the request is a force refresh..."
(2) https://www.youtube.com/watch?v=1d3KgacJv1I (Debugging Serviceworker Controller null)
* use <dialog> to insert help.html (without <head> and <body>) - something to consider
if help or info does not load smoothly...
/*
<script>
const helpButton = document.getElementById("help");
const helpDialog = document.getElementById("helpDialog");
helpButton.addEventListener("click", async () => {
try {
// Fetch the help.html content
const response = await fetch("help.html");
if (!response.ok) throw new Error("Failed to load help content");
// Insert the content into the dialog
const helpText = helpDialog.querySelector("#helpText");
helpText.innerHTML = await response.text();
// Show the dialog
helpDialog.showModal();
// Attach the close button handler
const closeHelpButton = helpDialog.querySelector(".btn.back");
closeHelpButton.addEventListener("click", () => {
helpDialog.close();
});
} catch (error) {
console.error(error);
}
});
</script>
*/
DONE:
* - biometric https://stackoverflow.blog/2022/11/16/biometric-authentication-for-web-devs/
4 - wipe pwd fields on lock!