src/nhttpd/web/Y_VLC.js fix for vlc windows 2.0.2 version parse

Origin commit data
------------------
Branch: ni/coolstream
Commit: d113487d35
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-21 (Wed, 21 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-11-21 13:36:56 +01:00
parent 5899f2dde0
commit ad3e05ef67

View File

@@ -56,11 +56,21 @@ CyVLC.prototype = {
for(var i=0;i<navigator.plugins.length;++i)
if (navigator.plugins[i].name.indexOf(name) != -1)
var plug = navigator.plugins[navigator.plugins[i].name];
if(typeof plug != 'undefined') {
var Suche = /(PLUGIN)/gi;
var Ergebnis = Suche.test(plug.description);
if (Ergebnis == true){
var ex = /^.*[pP]lugin [\"]*([^ \"]*)[\"]*.*$/;
var ve = ex.exec(plug.description);
}else{
var ex = /^.*[vV]ersion [\"]*([^ \"]*)[\"]*.*$/;
var ve = ex.exec(plug.description);
}
if(ve[1])
}
var Suche = /([0-9])/g;
var Ergebnis = Suche.test(ve);
if (Ergebnis == true)
return ve[1];
else
return "0.0.0";