diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-05-04 18:24:47 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-05-04 18:24:47 +0300 |
commit | 32949bf64bb7aa166913af6b91969788b403c847 (patch) | |
tree | 4726d7f7edf3865986ce68b19382095b62d83ecb /toolkit/jetpack | |
parent | 4a2aeb152e48c44efa57c140660e99792f4dd350 (diff) | |
download | uxp-32949bf64bb7aa166913af6b91969788b403c847.tar.gz |
[PMkit] Fix Empty string passed to getElementById() warning in buttons.js
Diffstat (limited to 'toolkit/jetpack')
-rw-r--r-- | toolkit/jetpack/sdk/ui/buttons.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/jetpack/sdk/ui/buttons.js b/toolkit/jetpack/sdk/ui/buttons.js index 66e0fd742d..6aaed3865d 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; |