Skip to content

Commit

Permalink
fix: enable pdfjs for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 authored and raviteja83 committed Jun 21, 2023
1 parent 5136e83 commit ed377e9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions apps/100ms-web/src/components/ScreenShare.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,9 @@ import { useUISettings } from "./AppData/useUISettings";
import { isScreenshareSupported } from "../common/utils";
import { UI_SETTINGS } from "../common/constants";

const isProd = process.env.REACT_APP_ENV === "prod";
export const ScreenshareToggle = ({ css = {} }) => {
const finalCSS = {
borderTopRightRadius: "$1",
borderBottomRightRadius: "$1",
};
const isAllowedToPublish = useHMSStore(selectIsAllowedToPublish);
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
if (isProd) {
css = { ...finalCSS, ...css };
}

const {
amIScreenSharing,
Expand Down Expand Up @@ -55,7 +47,7 @@ export const ScreenshareToggle = ({ css = {} }) => {
</Box>
</Tooltip>
</ScreenShareButton>
{!isProd && <ShareScreenOptions />}
<ShareScreenOptions />
</Flex>
</Fragment>
);
Expand Down

0 comments on commit ed377e9

Please sign in to comment.