DEV: Use the argument of element-modifier

This commit is contained in:
Jarek Radosz 2023-02-13 17:50:26 +01:00
parent ccc07569c5
commit 8fda89679f
1 changed files with 1 additions and 2 deletions

View File

@ -3,9 +3,8 @@ import { bind } from "discourse-common/utils/decorators";
export default class Console extends Component {
@bind
scrollToBottom() {
scrollToBottom(element) {
if (this.args.followOutput) {
const element = document.querySelector(".console-logs");
element.scrollTop = element.scrollHeight;
}
}