@alliance-droid/status-feedback-system 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -383,9 +383,12 @@
|
|
|
383
383
|
<Spinner /> Capturing screenshot...
|
|
384
384
|
</div>
|
|
385
385
|
{:else if screenshotFailed}
|
|
386
|
-
<div class="
|
|
387
|
-
<
|
|
388
|
-
|
|
386
|
+
<div class="rounded-md border border-border bg-surface p-3">
|
|
387
|
+
<div class="flex items-center gap-2 text-sm text-foreground-secondary mb-1">
|
|
388
|
+
<i class="fa-solid fa-image-slash" aria-hidden="true"></i>
|
|
389
|
+
<span>Screenshot capture failed</span>
|
|
390
|
+
</div>
|
|
391
|
+
<p class="text-xs text-foreground-tertiary mb-2">Check console for error. May need: <code class="bg-background px-1 rounded">npm install html2canvas</code></p>
|
|
389
392
|
<button
|
|
390
393
|
class="text-xs text-primary hover:underline bg-transparent border-none cursor-pointer p-0"
|
|
391
394
|
onclick={doScreenshot}
|
|
@@ -17,7 +17,8 @@ export async function captureScreenshot() {
|
|
|
17
17
|
});
|
|
18
18
|
return canvas.toDataURL('image/png');
|
|
19
19
|
}
|
|
20
|
-
catch {
|
|
20
|
+
catch (err) {
|
|
21
|
+
console.error('[DevFeedback] Screenshot capture failed:', err);
|
|
21
22
|
// html2canvas not installed or capture failed (cross-origin iframe, etc.)
|
|
22
23
|
return null;
|
|
23
24
|
}
|
package/package.json
CHANGED