Skip to content

Commit

Permalink
Merge pull request #1851 from robins1212/bindfullscreen
Browse files Browse the repository at this point in the history
bind classList function before calling in toggleFullScreen
  • Loading branch information
Tyriar committed Dec 20, 2018
2 parents 61d0e99 + 701f50f commit fcef4d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/addons/fullscreen/fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function toggleFullScreen(term: Terminal, fullscreen: boolean): void {
fn = term.element.classList.add;
}

fn = fn.bind(term.element.classList);
fn('fullscreen');
}

Expand Down

0 comments on commit fcef4d5

Please sign in to comment.