Add tab.hasClass() method

This commit is contained in:
Thomas Brouard 2020-03-12 21:56:23 +01:00
parent 16d13ed95d
commit a15110a2bb
2 changed files with 8 additions and 0 deletions

View file

@ -341,6 +341,10 @@ class Tab extends EventEmitter {
return this.flash(false);
}
hasClass (classname) {
return this.tab.classList.contains(classname);
}
close (force) {
const abortController = new AbortController();
const abort = () => abortController.abort();