Skip to content

Commit 2d8c789

Browse files
[mirotalkbro] - on navigator share error, falling back to QR
1 parent 81682c2 commit 2d8c789

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @license For open source under AGPL-3.0
99
* @license For private project or commercial purposes contact us at: [email protected]
1010
* @author Miroslav Pejic - [email protected]
11-
* @version 1.1.19
11+
* @version 1.1.20
1212
*/
1313

1414
require('dotenv').config();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalkbro",
3-
"version": "1.1.19",
3+
"version": "1.1.20",
44
"description": "P2P WebRTC audio, video and screen live broadcast",
55
"main": "app/server.js",
66
"scripts": {

public/js/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ async function shareRoomNavigator() {
251251
try {
252252
await navigator.share({ url: roomURL });
253253
} catch (err) {
254-
console.error('[Error] navigator share', err);
254+
console.error('[Error] navigator share, falling back to QR', err);
255+
256+
if (!isMobileDevice) shareRoomQR();
255257
}
256258
}
257259

0 commit comments

Comments
 (0)