@kehto/shell 0.27.0 → 0.28.0

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.
package/dist/index.js CHANGED
@@ -1695,6 +1695,17 @@ function nappletNamespacePrelude(domains, normalizeIntentUri2) {
1695
1695
  const target = window;
1696
1696
  const allowed = new Set(domains);
1697
1697
  const requestTimeoutMs = 3e4;
1698
+ for (const rtcCtor of ["RTCPeerConnection", "webkitRTCPeerConnection"]) {
1699
+ try {
1700
+ Object.defineProperty(target, rtcCtor, {
1701
+ value: void 0,
1702
+ writable: false,
1703
+ configurable: false,
1704
+ enumerable: false
1705
+ });
1706
+ } catch {
1707
+ }
1708
+ }
1698
1709
  function id() {
1699
1710
  if (target.crypto?.randomUUID) return target.crypto.randomUUID();
1700
1711
  return `napplet-${Date.now()}-${Math.random().toString(16).slice(2)}`;