* Show settings page * @param {string} goTo Key of setting to scroll to and select * @returns {void}
(goTo)
| 120 | * @returns {void} |
| 121 | */ |
| 122 | show(goTo) { |
| 123 | actionStack.push({ |
| 124 | id: title, |
| 125 | action: $page.hide, |
| 126 | }); |
| 127 | app.append($page); |
| 128 | helpers.showAd(); |
| 129 | |
| 130 | if (goTo) { |
| 131 | const $item = $list.get(`[data-key="${goTo}"]`); |
| 132 | if (!$item) return; |
| 133 | |
| 134 | $item.scrollIntoView(); |
| 135 | $item.click(); |
| 136 | return; |
| 137 | } |
| 138 | |
| 139 | $list.focus(); |
| 140 | }, |
| 141 | hide() { |
| 142 | $page.hide(); |
| 143 | }, |