mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
FS-7127 #comment follow jshint advices
This commit is contained in:
1 parent
0db3b1e344
commit
a80c739409
3 files changed
+34
-32
No files matched your search
@@ -431,13 +431,13 @@
|
||||
var iceServers = null;
|
||||
|
||||
if (options.iceServers) {
|
||||
var tmp = options.iceServers;;
|
||||
var tmp = options.iceServers;
|
||||
|
||||
if (typeof(tmp) === "boolean") {
|
||||
tmp = null;
|
||||
}
|
||||
|
||||
if (tmp && typeof(tmp) !== "array") {
|
||||
if (!(tmp && typeof(tmp) == "object" && tmp.constructor === Array)) {
|
||||
console.warn("iceServers must be an array, reverting to default ice servers");
|
||||
tmp = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user