Sort styles in pop-up by name
This commit is contained in:
parent
bd83d65da6
commit
4dca2e8e33
1
popup.js
1
popup.js
|
@ -52,6 +52,7 @@ chrome.tabs.getSelected(null, function(tab) {
|
|||
});
|
||||
|
||||
function showStyles(styles) {
|
||||
styles.sort(function(a, b) { return a.name.localeCompare(b.name)});
|
||||
var installed = document.getElementById("installed");
|
||||
if (styles.length == 0) {
|
||||
installed.innerHTML = "<div class='entry' id='no-styles'>" + t('noStylesForSite') + "</div>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user