1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 01:29:39 +02:00
This commit is contained in:
gorhill 2015-09-14 07:21:35 -04:00
parent 247e5ec464
commit 08dae71629

View File

@ -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');