mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +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)
|
||||
if (navigator.plugins[i].name.indexOf(name) != -1)
|
||||
var plug = navigator.plugins[navigator.plugins[i].name];
|
||||
|
||||
if(typeof plug != 'undefined') {
|
||||
var ex = /^.*[vV]ersion [\"]*([^ \"]*)[\"]*.*$/;
|
||||
var ve = ex.exec(plug.description);
|
||||
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])
|
||||
return ve[1];
|
||||
else
|
||||
var Suche = /([0-9])/g;
|
||||
var Ergebnis = Suche.test(ve);
|
||||
if (Ergebnis == true)
|
||||
return ve[1];
|
||||
else
|
||||
return "0.0.0";
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user