Skip to content

Commit

Permalink
create version element when it's known
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Oct 26, 2019
1 parent 6759d41 commit eadbf49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion popups/libraries.js
Expand Up @@ -13,8 +13,9 @@ var addLibrary = function(library) {

container.appendChild(link);

var version = document.createElement('span');
if (library.version) {
var version = document.createElement('span');

version.innerHTML = ' ' + library.version;
container.appendChild(version);
}
Expand Down

0 comments on commit eadbf49

Please sign in to comment.