mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 00:12:25 +00:00
fix(ci): polyfill navigator object in video-modal-zap.test.mjs
Handle the `TypeError: Cannot set property navigator of #<Object> which has only a getter` by attempting to set `globalThis.navigator` directly and falling back to `Object.defineProperty` if it's read-only. This ensures compatibility with environments where `navigator` is non-writable (like newer Node.js versions or certain test runners). Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
54c7dcd6ad
commit
c9b20d3eb8