mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
src/nhttpd/web/Y_VLC.js: fix vlc version parse
Origin commit data
------------------
Commit: e111712fc6
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-20 (Tue, 20 Nov 2012)
This commit is contained in:
@@ -51,14 +51,15 @@ CyVLC.prototype = {
|
||||
return words[0];
|
||||
}
|
||||
else
|
||||
if(navigator.plugins) {
|
||||
var plug = navigator.plugins['VLC multimedia plugin'];
|
||||
if(typeof plug == 'undefined')
|
||||
var plug = navigator.plugins['VLC Multimedia Plugin'];
|
||||
if(typeof plug == 'undefined')
|
||||
var plug = navigator.plugins['VLC Multimedia Plug-in'];
|
||||
var ex = /^.*[vV]ersion [\"]*([^ \"]*)[\"]*.*$/;
|
||||
var ve = ex.exec(plug.description);
|
||||
if (navigator.plugins && (navigator.plugins.length > 0)) {
|
||||
var name = "VLC";
|
||||
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);
|
||||
}
|
||||
if(ve[1])
|
||||
return ve[1];
|
||||
else
|
||||
|
Reference in New Issue
Block a user