Unverified Commit 098505cc authored by Andrei Eres's avatar Andrei Eres Committed by GitHub
Browse files

Fix opening in a tab in firefox (#83)

parent 55d257c4
Pipeline #163497 passed with stages
in 1 minute and 19 seconds
......@@ -14,7 +14,10 @@ const Media: React.FC<BaseProps> = ({ className }) => {
const cameraAllowed = useStore(cameraAllowedStore)
const canGrant = !isPopup()
const open = () => windowOpen('/')
const open = () => {
window.close() // Firefox doen't close it itself
windowOpen('/')
}
if (cameraAllowed) return null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment