mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Fix CI failures in popover engine, tag trimming, and canvas mock
- Guard `js/ui/overlay/popoverEngine.js` against missing `window` and detached elements in `updatePosition`. - Update `js/ui/components/VideoModal.js` `normalizeVideoTags` to strip `#` prefix, aligning with test expectations and display logic. - Mock `HTMLCanvasElement.prototype.getContext` in `tests/video-modal-accessibility.test.mjs` to silence benign warnings. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
870f8ee8c8
commit
d81643b423
3 files changed
+20
-3
No files matched your search
@@ -3244,7 +3244,7 @@ export class VideoModal {
|
||||
|
||||
seen.add(key);
|
||||
|
||||
const display = trimmed.startsWith("#") ? trimmed : `#${trimmed}`;
|
||||
const display = trimmed.startsWith("#") ? trimmed.slice(1) : trimmed;
|
||||
normalized.push(display);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user