fix for firefox on android
This commit is contained in:
1 parent
b2c88f7e62
commit
b4ae7fb985
1 file changed
+10
-1
+10
-1
@@ -1660,9 +1660,11 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ANDROID_APP_SCHEME = "org.jitsi.meet://";
|
||||||
|
|
||||||
function createAndroidAppUrl(room) {
|
function createAndroidAppUrl(room) {
|
||||||
return (
|
return (
|
||||||
"org.jitsi.meet://" +
|
ANDROID_APP_SCHEME +
|
||||||
CONFIG.jitsiHost +
|
CONFIG.jitsiHost +
|
||||||
"/" +
|
"/" +
|
||||||
encodeURIComponent(room)
|
encodeURIComponent(room)
|
||||||
@@ -1875,9 +1877,16 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Protocol Handler starten.
|
* Protocol Handler starten.
|
||||||
|
*
|
||||||
|
* Firefox ignoriert externe Protokolle aus iframes –
|
||||||
|
* das Custom-Schema direkt in der Hauptnavigation starten.
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
|
if (protocolUrl.startsWith(ANDROID_APP_SCHEME)) {
|
||||||
|
window.location.href = protocolUrl;
|
||||||
|
} else {
|
||||||
iframe.src = protocolUrl;
|
iframe.src = protocolUrl;
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(
|
console.error(
|
||||||
"Error opening the Jitsi Protocol Handler:",
|
"Error opening the Jitsi Protocol Handler:",
|
||||||
|
|||||||
Reference in new issue
Block a user