Skip to content

Commit

Permalink
Merge pull request #12841 from prlanzarin/u24-nosaf-vbg
Browse files Browse the repository at this point in the history
fix(virtual-backgrounds): disable on Safari
  • Loading branch information
antobinary committed Jul 27, 2021
2 parents 9e644e8 + e15aa20 commit 06efa49
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import deviceInfo from '/imports/utils/deviceInfo';
import browserInfo from '/imports/utils/browserInfo';
import { createVirtualBackgroundService } from '/imports/ui/services/virtual-background';

const BLUR_FILENAME = 'blur.jpg';
Expand Down Expand Up @@ -82,9 +83,8 @@ const getSessionVirtualBackgroundInfoWithDefault = () => {
};
}

const isVirtualBackgroundEnabled = () => {
return VIRTUAL_BACKGROUND_ENABLED && !deviceInfo.isIOS;
}
const isVirtualBackgroundEnabled = () => VIRTUAL_BACKGROUND_ENABLED
&& !(deviceInfo.isIOS || browserInfo.isSafari);

const getVirtualBgImagePath = () => {
return (IS_STORED_ON_BBB ? BASE_PATH : '') + IMAGES_PATH;
Expand Down

0 comments on commit 06efa49

Please sign in to comment.