Add tab.hasClass() method
This commit is contained in:
parent
16d13ed95d
commit
a15110a2bb
2 changed files with 8 additions and 0 deletions
4
index.js
4
index.js
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue