mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
EventIndexPeg: Add a helper method to easily start the crawler.
This commit is contained in:
parent
4fe7752f3c
commit
928bb69b11
@ -69,6 +69,11 @@ class EventIndexPeg {
|
|||||||
return this.index;
|
return this.index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
if (this.index === null) return;
|
||||||
|
this.index.startCrawler();
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
if (this.index === null) return;
|
if (this.index === null) return;
|
||||||
this.index.stopCrawler();
|
this.index.stopCrawler();
|
||||||
|
Loading…
Reference in New Issue
Block a user