mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix #3232 (regression from 386e8bee9c)
This commit is contained in:
parent
11cba7b1a7
commit
118240d36d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue