This commit is contained in:
gorhill 2015-09-14 07:21:35 -04:00
parent 247e5ec464
commit 08dae71629
1 changed files with 7 additions and 1 deletions

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