summaryrefslogtreecommitdiff
path: root/toolkit/jetpack
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-19 23:45:44 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-19 23:45:44 +0300
commit948fa07643f547f72923228b32be768e86c34e15 (patch)
treec5efb8433c99757846234b8ab7d8eb43e56607c5 /toolkit/jetpack
parentdd2c5b4ff4065a8236708c97c01e43585b2fae23 (diff)
downloaduxp-948fa07643f547f72923228b32be768e86c34e15.tar.gz
[PMkit] Allow access to 'sdk/ui/buttons' via require('sdk/ui')
Diffstat (limited to 'toolkit/jetpack')
-rw-r--r--toolkit/jetpack/moz.build5
-rw-r--r--toolkit/jetpack/sdk/ui.js2
2 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/jetpack/moz.build b/toolkit/jetpack/moz.build
index f475d1a63c..ad11e90a3a 100644
--- a/toolkit/jetpack/moz.build
+++ b/toolkit/jetpack/moz.build
@@ -219,11 +219,14 @@ EXTRA_JS_MODULES.commonjs.sdk += [
'sdk/tabs.js',
'sdk/test.js',
'sdk/timers.js',
- 'sdk/ui.js',
'sdk/url.js',
'sdk/windows.js',
]
+EXTRA_PP_JS_MODULES.commonjs.sdk += [
+ 'sdk/ui.js',
+]
+
EXTRA_JS_MODULES.commonjs.sdk.addon += [
'sdk/addon/bootstrap.js',
'sdk/addon/events.js',
diff --git a/toolkit/jetpack/sdk/ui.js b/toolkit/jetpack/sdk/ui.js
index 9f00be1c78..d1ff7ceb84 100644
--- a/toolkit/jetpack/sdk/ui.js
+++ b/toolkit/jetpack/sdk/ui.js
@@ -13,6 +13,8 @@ module.metadata = {
exports.ActionButton = require('./ui/button/action').ActionButton;
exports.ToggleButton = require('./ui/button/toggle').ToggleButton;
+#ifndef MC_PALEMOON
exports.Sidebar = require('./ui/sidebar').Sidebar;
exports.Frame = require('./ui/frame').Frame;
exports.Toolbar = require('./ui/toolbar').Toolbar;
+#endif