Skip to content

Commit

Permalink
feat: show alfred element ID if present
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Apr 12, 2023
1 parent 239d64b commit 3991af1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Alfred.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@

Alfred.prototype.addIcons = function (el, icons, type) {
let html = "<div class=icons>";
if (type) {
html += "<span class='rpb-type'><span>" + type + "</span></span>";
let id = $(el).parent().attr("id") || "";
if (id) {
id = "<span style='margin-right: 7px;'>#" + id + "</span>";
}
if (type || id) {
html += "<span class='rpb-type'><span>" + id + type + "</span></span>";
}
icons.forEach(function (icon) {
// console.log(icon);
Expand Down

0 comments on commit 3991af1

Please sign in to comment.