[PMkit] Fix Empty string passed to getElementById() warning in buttons.js

This commit is contained in:
JustOff 2018-05-04 18:24:47 +03:00 committed by Roy Tam
commit 85a31335e2

View file

@ -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;