update o3.js
This commit is contained in:
parent
fa541b64a6
commit
720c691fa4
1 changed files with 13 additions and 2 deletions
|
|
@ -50,8 +50,19 @@ function detect(o) {
|
|||
version = window.external.o3.versionInfo.match(/v([\d]+\.[\d]+)/)[1];
|
||||
embedded = true;
|
||||
}
|
||||
else if (navigator.plugins && navigator.plugins[name]) {
|
||||
version = navigator.plugins[name].description.match(/v([\d]+\.[\d]+)/)[1];
|
||||
|
||||
else if (navigator.plugins) {
|
||||
if (navigator.plugins[name]) {
|
||||
version = navigator.plugins[name].description.match(/v([\d]+\.[\d]+)/)[1];
|
||||
}
|
||||
else {
|
||||
// try sniffing the mimeTypes
|
||||
name = "application/" + name;
|
||||
for (var i = 0, l = navigator.mimeTypes.length; i < l; ++i) {
|
||||
if (navigator.mimeTypes[i].type == name)
|
||||
version = "0.9";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue