aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-09-14 07:21:35 -0400
committergorhill <rhill@raymondhill.net>2015-09-14 07:21:35 -0400
commit08dae71629688309119c058f365ee014c218b9b1 (patch)
tree58731748ff1a1477cf61ef4237d83dee9647c3ff /src
parent247e5ec464ff06fec6bcc8468bc9332603ef3a79 (diff)
downloaduBlock-08dae71629688309119c058f365ee014c218b9b1.zip
uBlock-08dae71629688309119c058f365ee014c218b9b1.tar.gz
uBlock-08dae71629688309119c058f365ee014c218b9b1.tar.bz2
this fixes #712
Diffstat (limited to 'src')
-rw-r--r--src/js/document-blocked.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/js/document-blocked.js b/src/js/document-blocked.js
index f4d7b4e..5b1c469 100644
--- a/src/js/document-blocked.js
+++ b/src/js/document-blocked.js
@@ -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');