Эх сурвалжийг харах

fix properly import webrtc-adapter

afrokick 6 жил өмнө
parent
commit
477deb9181
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      lib/adapter.ts
  2. 1 1
      test/faker.ts

+ 1 - 1
lib/adapter.ts

@@ -1,4 +1,4 @@
-import "webrtc-adapter";
+import { adapter as _ } from "webrtc-adapter";
 
 export const RTCSessionDescription =
   // @ts-ignore

+ 1 - 1
test/faker.ts

@@ -1,5 +1,5 @@
 import { WebSocket } from 'mock-socket';
-import "webrtc-adapter";
+import { adapter as _ } from 'webrtc-adapter';
 
 const fakeGlobals = {
     WebSocket,