mirror of https://github.com/gorhill/uBlock.git
Trim trailing spaces from string values in advanced settings
This commit is contained in:
parent
123b939944
commit
68e1b58bb6
|
@ -164,7 +164,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'string':
|
case 'string':
|
||||||
out[name] = value;
|
out[name] = value.trim();
|
||||||
break;
|
break;
|
||||||
case 'number':
|
case 'number':
|
||||||
out[name] = parseInt(value, 10);
|
out[name] = parseInt(value, 10);
|
||||||
|
|
Loading…
Reference in New Issue