change getCurrentPanel to getCurrentPanelElement

This commit is contained in:
dnahol 2019-10-24 10:17:32 -07:00
parent 2cddbefb63
commit 29a0277398

View file

@ -383,7 +383,7 @@ const Logic = {
}
},
getCurrentPanel() {
getCurrentPanelElement() {
const panelItem = this._panels[this._currentPanel];
return document.querySelector(this.getPanelSelector(panelItem));
},
@ -556,7 +556,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
previous();
break;
case 13: {
const panel = Logic.getCurrentPanel();
const panel = Logic.getCurrentPanelElement();
const button = panel.getElementsByTagName("A")[0];
if(button) {
button.click();