Skip to content

Commit

Permalink
Apply theme color to toolbar button icon if possile #215
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 18, 2018
1 parent c0bb355 commit b6fde5d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions webextensions/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,17 @@ async function notifyUpdatedFromLegacy() {
}
});
}

// This section should be removed and define those context-fill icons
// statically on manifest.json after Firefox ESR66 (or 67) is released.
// See also: https://github.com/piroor/multipletab/issues/215
browser.runtime.getBrowserInfo().then(browserInfo => {
if (parseInt(browserInfo.version.split('.')[0]) >= 62)
browser.browserAction.setIcon({
path: {
16: '/resources/16x16.svg',
20: '/resources/20x20.svg',
24: '/resources/24x24.svg'
}
});
});

0 comments on commit b6fde5d

Please sign in to comment.