[Pkg-voip-commits] [janus] 189/282: Don't use es6 specific code

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit 526042090d613c8c4e286d98c306e6aa32e05669
Author: Ancor Gonzalez Sosa <ancor at suse.de>
Date:   Fri Nov 17 17:39:10 2017 +0100

    Don't use es6 specific code
    
    This change allows janus.js to remain compatible with Chrome < 45
    and with Node.js < 4.8.6
---
 html/janus.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/janus.js b/html/janus.js
index 79bdc0e..80d6450 100644
--- a/html/janus.js
+++ b/html/janus.js
@@ -1366,7 +1366,7 @@ function Janus(gatewayCallbacks) {
 		};
 		if(stream !== null && stream !== undefined) {
 			Janus.log('Adding local stream');
-			stream.getTracks().forEach(track => config.pc.addTrack(track, stream));
+			stream.getTracks().forEach(function(track) { config.pc.addTrack(track, stream); });
 			pluginHandle.onlocalstream(stream);
 		}
 		config.pc.ontrack = function(event) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list