summaryrefslogtreecommitdiffstats
path: root/toolkit/jetpack/sdk/ui
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-05-04 18:24:47 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-05-04 18:24:47 +0300
commit32949bf64bb7aa166913af6b91969788b403c847 (patch)
tree4726d7f7edf3865986ce68b19382095b62d83ecb /toolkit/jetpack/sdk/ui
parent4a2aeb152e48c44efa57c140660e99792f4dd350 (diff)
downloadUXP-32949bf64bb7aa166913af6b91969788b403c847.tar
UXP-32949bf64bb7aa166913af6b91969788b403c847.tar.gz
UXP-32949bf64bb7aa166913af6b91969788b403c847.tar.lz
UXP-32949bf64bb7aa166913af6b91969788b403c847.tar.xz
UXP-32949bf64bb7aa166913af6b91969788b403c847.zip
[PMkit] Fix Empty string passed to getElementById() warning in buttons.js
Diffstat (limited to 'toolkit/jetpack/sdk/ui')
-rw-r--r--toolkit/jetpack/sdk/ui/buttons.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/jetpack/sdk/ui/buttons.js b/toolkit/jetpack/sdk/ui/buttons.js
index 66e0fd742..6aaed3865 100644
--- a/toolkit/jetpack/sdk/ui/buttons.js
+++ b/toolkit/jetpack/sdk/ui/buttons.js
@@ -50,7 +50,7 @@ function insertButton(aWindow, id, onBuild) {
let toolbar = toolbarId != "" && doc.getElementById(toolbarId);
if (toolbar) {
- let nextItem = doc.getElementById(nextItemId);
+ let nextItem = nextItemId != "" && doc.getElementById(nextItemId);
// If nextItem not in toolbar then retrieve it by reading currentset attribute
if (!(nextItem && nextItem.parentNode && nextItem.parentNode.id == toolbarId)) {
nextItem = null;