diff options
author | New Tobin Paradigm <email@mattatobin.com> | 2018-04-21 20:02:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-21 20:02:56 -0400 |
commit | 747b7a9cc4ee5e96ac42f19ed4a8a56a2f7d0103 (patch) | |
tree | 8d3d6f9a3fcddecc5395194ef2d9a0f61e0769b6 | |
parent | 0a744b1cfeecdd2487d9166792ac5234edc9ee6a (diff) | |
parent | 54db9d2005c9e0450c902805c7a94fbda12f46cb (diff) | |
download | uxp-747b7a9cc4ee5e96ac42f19ed4a8a56a2f7d0103.tar.gz |
Merge pull request #226 from JustOff/PR_PMkit_part3
Make Add-on SDK (Jetpack) work on Pale Moon || Part 3
-rw-r--r-- | toolkit/jetpack/sdk/panel.js | 1 | ||||
-rw-r--r-- | toolkit/jetpack/sdk/ui/button/view.js | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/jetpack/sdk/panel.js b/toolkit/jetpack/sdk/panel.js index 4b625799d7..34cde2eddd 100644 --- a/toolkit/jetpack/sdk/panel.js +++ b/toolkit/jetpack/sdk/panel.js @@ -8,6 +8,7 @@ module.metadata = { "stability": "stable", "engines": { + "Palemoon": "*", "Firefox": "*", "SeaMonkey": "*" } diff --git a/toolkit/jetpack/sdk/ui/button/view.js b/toolkit/jetpack/sdk/ui/button/view.js index 552aab2f77..dcc3be59dc 100644 --- a/toolkit/jetpack/sdk/ui/button/view.js +++ b/toolkit/jetpack/sdk/ui/button/view.js @@ -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); |