mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
[PMkit] Fix the shim for 'sdk/ui/button'
This commit is contained in:
parent
6014f5e7b5
commit
65c7b6fd8e
1 changed files with 1 additions and 3 deletions
|
|
@ -141,11 +141,11 @@ function create(options) {
|
|||
CustomizableUI.createWidget({
|
||||
#endif
|
||||
id: id,
|
||||
type: 'custom',
|
||||
#ifdef MC_PALEMOON
|
||||
|
||||
onBuild: function(document, _id) {
|
||||
#else
|
||||
type: 'custom',
|
||||
removable: true,
|
||||
defaultArea: AREA_NAVBAR,
|
||||
allowedAreas: [ AREA_PANEL, AREA_NAVBAR ],
|
||||
|
|
@ -167,9 +167,7 @@ function create(options) {
|
|||
node.setAttribute('id', this.id);
|
||||
#endif
|
||||
node.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional badged-button');
|
||||
#ifndef MC_PALEMOON
|
||||
node.setAttribute('type', type);
|
||||
#endif
|
||||
node.setAttribute('label', label);
|
||||
node.setAttribute('tooltiptext', label);
|
||||
node.setAttribute('image', image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue