mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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:
@@ -56,13 +56,23 @@ CyVLC.prototype = {
|
|||||||
for(var i=0;i<navigator.plugins.length;++i)
|
for(var i=0;i<navigator.plugins.length;++i)
|
||||||
if (navigator.plugins[i].name.indexOf(name) != -1)
|
if (navigator.plugins[i].name.indexOf(name) != -1)
|
||||||
var plug = navigator.plugins[navigator.plugins[i].name];
|
var plug = navigator.plugins[navigator.plugins[i].name];
|
||||||
|
|
||||||
if(typeof plug != 'undefined') {
|
if(typeof plug != 'undefined') {
|
||||||
var ex = /^.*[vV]ersion [\"]*([^ \"]*)[\"]*.*$/;
|
var Suche = /(PLUGIN)/gi;
|
||||||
var ve = ex.exec(plug.description);
|
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;
|
||||||
return ve[1];
|
var Ergebnis = Suche.test(ve);
|
||||||
else
|
if (Ergebnis == true)
|
||||||
|
return ve[1];
|
||||||
|
else
|
||||||
return "0.0.0";
|
return "0.0.0";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user