diff --git a/react/features/always-on-top/AudioMuteButton.js b/react/features/always-on-top/AudioMuteButton.js index db03974b4..85551e046 100644 --- a/react/features/always-on-top/AudioMuteButton.js +++ b/react/features/always-on-top/AudioMuteButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractAudioMuteButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; const logger = require('jitsi-meet-logger').getLogger(__filename); diff --git a/react/features/always-on-top/HangupButton.js b/react/features/always-on-top/HangupButton.js index e9490fc93..225428053 100644 --- a/react/features/always-on-top/HangupButton.js +++ b/react/features/always-on-top/HangupButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractHangupButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; diff --git a/react/features/always-on-top/VideoMuteButton.js b/react/features/always-on-top/VideoMuteButton.js index c0ffb4618..874143bbe 100644 --- a/react/features/always-on-top/VideoMuteButton.js +++ b/react/features/always-on-top/VideoMuteButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractVideoMuteButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; const logger = require('jitsi-meet-logger').getLogger(__filename);