Skip to content

Commit

Permalink
Added settings.controls[key].helptip support ↞ [auto-sync from http…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 21, 2024
1 parent a7a4a03 commit b2a1975
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions starters/chrome/extension/popup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@
Object.keys(settings.controls).forEach(key => {

// Init elems
const menuItemDiv = dom.create.elem('div', { class: 'menu-item menu-area' }),
menuLabel = dom.create.elem('label', { class: 'menu-icon' }),
menuLabelSpan = document.createElement('span')
const menuItemDiv = dom.create.elem('div', {
class: 'menu-item menu-area', title: settings.controls[key].helptip || '' })
const menuLabel = dom.create.elem('label', { class: 'menu-icon' })
const menuLabelSpan = dom.create.elem('span')
let menuInput, menuSlider
menuLabelSpan.textContent = settings.controls[key].label
if (settings.controls[key].type == 'toggle') {
Expand Down

0 comments on commit b2a1975

Please sign in to comment.