瀏覽代碼

fix(AOT): imports.

j8
Hristo Terezov 6 年之前
父節點
當前提交
b5cef05941

+ 4
- 2
react/features/always-on-top/AudioMuteButton.js 查看文件

@@ -1,7 +1,9 @@
1 1
 // @flow
2 2
 
3
-import { AbstractAudioMuteButton } from '../base/toolbox';
4
-import type { AbstractButtonProps as Props } from '../base/toolbox';
3
+// We need to reference these files directly to avoid loading things that are not available
4
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
5
+import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton';
6
+import type { Props } from '../base/toolbox/components/AbstractButton';
5 7
 
6 8
 const { api } = window.alwaysOnTop;
7 9
 const logger = require('jitsi-meet-logger').getLogger(__filename);

+ 4
- 2
react/features/always-on-top/HangupButton.js 查看文件

@@ -1,7 +1,9 @@
1 1
 // @flow
2 2
 
3
-import { AbstractHangupButton } from '../base/toolbox';
4
-import type { AbstractButtonProps as Props } from '../base/toolbox';
3
+// We need to reference these files directly to avoid loading things that are not available
4
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
5
+import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton';
6
+import type { Props } from '../base/toolbox/components/AbstractButton';
5 7
 
6 8
 const { api } = window.alwaysOnTop;
7 9
 

+ 4
- 2
react/features/always-on-top/VideoMuteButton.js 查看文件

@@ -1,7 +1,9 @@
1 1
 // @flow
2 2
 
3
-import { AbstractVideoMuteButton } from '../base/toolbox';
4
-import type { AbstractButtonProps as Props } from '../base/toolbox';
3
+// We need to reference these files directly to avoid loading things that are not available
4
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
5
+import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton';
6
+import type { Props } from '../base/toolbox/components/AbstractButton';
5 7
 
6 8
 const { api } = window.alwaysOnTop;
7 9
 const logger = require('jitsi-meet-logger').getLogger(__filename);

Loading…
取消
儲存