Merge pull request #311 from rtfpessoa/fix-file-list-toggle

fix: Add missing dot in class query selector
This commit is contained in:
Rodrigo Fernandes 2020-03-10 18:32:20 +00:00 committed by GitHub
commit 559cdb420b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ export class Diff2HtmlUI {
}
fileListToggle(startVisible: boolean): void {
const showBtn: HTMLElement | null = this.targetElement.querySelector('d2h-show');
const showBtn: HTMLElement | null = this.targetElement.querySelector('.d2h-show');
const hideBtn: HTMLElement | null = this.targetElement.querySelector('.d2h-hide');
const fileList: HTMLElement | null = this.targetElement.querySelector('.d2h-file-list');