|
|
@ -1,7 +1,7 @@
|
|
|
|
(function() {
|
|
|
|
(function() {
|
|
|
|
self.port.on('displayApps', function(message) {
|
|
|
|
self.port.on('displayApps', function(message) {
|
|
|
|
var
|
|
|
|
var
|
|
|
|
div, a, img, label, name, slugify,
|
|
|
|
div, a, img, label, name, slugify, confidence, version,
|
|
|
|
d = document,
|
|
|
|
d = document,
|
|
|
|
detectedApps = d.getElementById('detected-apps'),
|
|
|
|
detectedApps = d.getElementById('detected-apps'),
|
|
|
|
empty = d.getElementById('empty');
|
|
|
|
empty = d.getElementById('empty');
|
|
|
@ -52,8 +52,8 @@
|
|
|
|
label.appendChild(name);
|
|
|
|
label.appendChild(name);
|
|
|
|
label.appendChild(d.createTextNode(( version ? ' ' + version : '' ) + ( confidence < 100 ? ' (' + confidence + '% sure)' : '')));
|
|
|
|
label.appendChild(d.createTextNode(( version ? ' ' + version : '' ) + ( confidence < 100 ? ' (' + confidence + '% sure)' : '')));
|
|
|
|
|
|
|
|
|
|
|
|
a.appendChild(img)
|
|
|
|
a.appendChild(img);
|
|
|
|
a.appendChild(label)
|
|
|
|
a.appendChild(label);
|
|
|
|
|
|
|
|
|
|
|
|
div.appendChild(a);
|
|
|
|
div.appendChild(a);
|
|
|
|
|
|
|
|
|
|
|
|