mirror of https://github.com/gorhill/uBlock.git
fix #3232 (regression from 386e8bee9c
)
This commit is contained in:
parent
11cba7b1a7
commit
118240d36d
|
@ -1079,7 +1079,8 @@
|
|||
var re;
|
||||
// Matches language?
|
||||
if ( typeof details.lang === 'string' ) {
|
||||
if ( this.listMatchesEnvironment.reLang === undefined ) {
|
||||
re = this.listMatchesEnvironment.reLang;
|
||||
if ( re === undefined ) {
|
||||
re = new RegExp('\\b' + self.navigator.language.slice(0, 2) + '\\b');
|
||||
this.listMatchesEnvironment.reLang = re;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue