Verified Commit 5e550272 authored by Chocobozzz's avatar 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
......@@ -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')
}
}
......
Markdown is supported
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