Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GunChleoc
joinpeertube
Commits
5e550272
Verified
Commit
5e550272
authored
Feb 24, 2021
by
Chocobozzz
Browse files
Do not display embed on safari/ios
We have a bug on peertube that freezes the page on safari and ios
parent
d80e05ca
Pipeline
#395342
passed with stage
in 1 minute and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/views/Home.vue
View file @
5e550272
...
...
@@ -86,7 +86,7 @@
</div>
<div
class=
"one-column"
>
<div
class=
"iframe-responsive"
>
<div
class=
"iframe-responsive"
v-if=
"isNotSafari()"
>
<iframe
sandbox=
"allow-same-origin allow-scripts"
v-bind:src=
"getIframeUrl()"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
...
...
@@ -676,7 +676,15 @@
return
'
https://framatube.org/videos/embed/9c9de5e8-0a1e-484a-b099-e80766180a6d
'
+
params
},
doSearch
(
value
)
{
isNotSafari
()
{
const
ua
=
window
.
navigator
.
userAgent
const
iOS
=
ua
.
match
(
/iPad/i
)
||
ua
.
match
(
/iPhone/i
)
const
safariDesktop
=
ua
.
match
(
/Safari/i
)
&&
!
ua
.
match
(
/Chrome/i
)
return
!
iOS
&&
!
safariDesktop
},
doSearch
()
{
window
.
open
(
'
https://sepiasearch.org/search?search=
'
+
this
.
searchInputValue
,
'
_blank
'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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