Commit a124dd45 by Jorem Magcawas

update filter to opera

parent 2bc04447
...@@ -85,7 +85,14 @@ function getBrowserName(){ ...@@ -85,7 +85,14 @@ function getBrowserName(){
//In Edge, the true version is after "Edge" //In Edge, the true version is after "Edge"
if (ieCheck) { if (ieCheck) {
browserName = "Edge"; browserName = "Edge";
} }
//If Opera
var isChromium = window.chrome,
isOpera = window.navigator.userAgent.indexOf("OPR") > -1 || window.navigator.userAgent.indexOf("Opera") > -1;
if(isChromium !== null && isOpera == true) {
browserName = "Opera";
}
// In MSIE, the true version is after "MSIE" in userAgent // In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment