mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 11:15:41 +02:00
fix: surface cookie_ext_skipped warning toast in CaptureDialog
This commit is contained in:
parent
52effb60f6
commit
83d4ca57e7
3 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Archivr</title>
|
<title>Archivr</title>
|
||||||
<script type="module" crossorigin src="/assets/index-DNXMjfPb.js"></script>
|
<script type="module" crossorigin src="/assets/index-D6iX-c2T.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-C0BIEdow.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-C0BIEdow.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ export default function CaptureDialog({ open, archiveId, onClose, onCaptured, on
|
||||||
// Warn if uBlock was requested but the extension wasn't available
|
// Warn if uBlock was requested but the extension wasn't available
|
||||||
try {
|
try {
|
||||||
const notes = updated.notes_json ? JSON.parse(updated.notes_json) : null
|
const notes = updated.notes_json ? JSON.parse(updated.notes_json) : null
|
||||||
if (notes?.ublock_skipped) {
|
if (notes?.ublock_skipped || notes?.cookie_ext_skipped) {
|
||||||
onToastRef.current(null, locator, 'warning')
|
onToastRef.current(null, locator, 'warning')
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue