mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02:00
this fixes #712
This commit is contained in:
parent
247e5ec464
commit
08dae71629
@ -169,11 +169,17 @@ uDom.nodeFromId('why').textContent = details.fs;
|
||||
var reURL = /^https?:\/\//;
|
||||
|
||||
var liFromParam = function(name, value) {
|
||||
if ( value === '' ) {
|
||||
value = name;
|
||||
name = '';
|
||||
}
|
||||
var li = document.createElement('li');
|
||||
var span = document.createElement('span');
|
||||
span.textContent = name;
|
||||
li.appendChild(span);
|
||||
li.appendChild(document.createTextNode(' = '));
|
||||
if ( name !== '' && value !== '' ) {
|
||||
li.appendChild(document.createTextNode(' = '));
|
||||
}
|
||||
span = document.createElement('span');
|
||||
if ( reURL.test(value) ) {
|
||||
var a = document.createElement('a');
|
||||
|
Loading…
Reference in New Issue
Block a user