FS-7127 #comment follow jshint advices

This commit is contained in:
Seven Du committed 2015-01-03 09:24:59 +08:00
1 parent 0db3b1e344
commit a80c739409
3 files changed
+34 -32

No files matched your search

+2 -2
View File
@@ -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;
}