Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer-companion
Commits
098505cc
Unverified
Commit
098505cc
authored
Oct 25, 2021
by
Andrei Eres
Committed by
GitHub
Oct 25, 2021
Browse files
Fix opening in a tab in firefox (#83)
parent
55d257c4
Pipeline
#163497
passed with stages
in 1 minute and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ui/components/Media.tsx
View file @
098505cc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment