We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23bac84 commit fdb073cCopy full SHA for fdb073c
chromium/rules.js
@@ -97,8 +97,10 @@ function RuleSets() {
97
RuleSets.prototype = {
98
99
localPlatformRegexp: (function() {
100
- if (/(OPR|Opera)[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
101
- log(DBUG, 'Detected that we are running Opera');
+ let isOpera = navigator.userAgent.match(/(?:OPR|Opera)[\/\s](\d+)(?:\.\d+)/);
+ if (isOpera && isOpera.length === 2 && parseInt(isOpera[1]) < 23) {
102
+ // Opera <23 does not have mixed content blocking
103
+ log(DBUG, 'Detected that we are running Opera < 23');
104
return new RegExp("chromium|mixedcontent");
105
} else {
106
log(DBUG, 'Detected that we are running Chrome/Chromium');
0 commit comments