mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
FS-9628: [verto] correct return value of $.FSRTC.bestResSupported to be the largest resolution
This commit is contained in:
1 parent
7d7200f03c
commit
5d6ab013d1
2 files changed
+7
-6
No files matched your search
@@ -961,7 +961,7 @@
|
||||
var w = 0, h = 0;
|
||||
|
||||
for (var i in $.FSRTC.validRes) {
|
||||
if ($.FSRTC.validRes[i][0] > w && $.FSRTC.validRes[i][1] > h) {
|
||||
if ($.FSRTC.validRes[i][0] >= w && $.FSRTC.validRes[i][1] >= h) {
|
||||
w = $.FSRTC.validRes[i][0];
|
||||
h = $.FSRTC.validRes[i][1];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user