* Whether the current browser is an Opera browser. * @return {boolean}
()
| 72 | * @return {boolean} |
| 73 | */ |
| 74 | isOpera() { |
| 75 | // Chrome UA on Android may include OPR<v> (build code referring to Oreo), |
| 76 | // however real Opera puts put a / after OPR and that's the only tell, so |
| 77 | // we check for OPR/ instead of OPR |
| 78 | return /OPR\/|Opera|OPiOS/i.test(this.navigator_.userAgent); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Whether the current browser is an Edge browser. |
no test coverage detected