projects
/
Epoz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b437454
)
Ajout isFirefox
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 22 May 2014 08:44:01 +0000
(10:44 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 22 May 2014 08:44:01 +0000
(10:44 +0200)
epoz/epoz_core/epoz_script_detect.js.dtml
patch
|
blob
|
history
diff --git
a/epoz/epoz_core/epoz_script_detect.js.dtml
b/epoz/epoz_core/epoz_script_detect.js.dtml
index
85071e9
..
e29479e
100755
(executable)
--- a/
epoz/epoz_core/epoz_script_detect.js.dtml
+++ b/
epoz/epoz_core/epoz_script_detect.js.dtml
@@
-21,6
+21,7
@@
function BrowserDetect() {
this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
this.isMozilla = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
this.isFirebird = (ua.indexOf('firebird/') != -1);
this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
this.isMozilla = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
this.isFirebird = (ua.indexOf('firebird/') != -1);
+ this.isFirefox = (ua.indexOf('firefox/') != -1);
this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
// spoofing and compatible browsers
this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
// spoofing and compatible browsers