calc: cipher/option import parsed, never eval'd (parseCipherArgs/cipherFromExport; option names whitelisted, values JSON scalars); manifest icons point at files that exist (36→32)
Removes the five eval() sites: imported cipher files and the localStorage settings copy can no longer execute code, and the calculator now works under a CSP without 'unsafe-eval'. Export format unchanged for booleans/numbers. Parity commit with the instance tree; release gated.
This commit is contained in:
1 parent
a88532f421
commit
777089b91d
6 files changed
+94
-51
No files matched your search
+4
-4
@@ -4,13 +4,13 @@
|
||||
"background_color": "#202631",
|
||||
"icons": [
|
||||
{
|
||||
"src": "res/calc-logo-36.png",
|
||||
"sizes": "36x36",
|
||||
"src": "res/calc-logo-32.png",
|
||||
"sizes": "32x32",
|
||||
"type": "image/png",
|
||||
"density": 0.75
|
||||
},
|
||||
{
|
||||
"src": "res/calc-logo-36.png",
|
||||
"src": "res/calc-logo-48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png",
|
||||
"density": 1.0
|
||||
@@ -42,4 +42,4 @@
|
||||
],
|
||||
"start_url": "index.html",
|
||||
"display": "fullscreen"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user