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