EventIndexPeg: Treat both cases of unavailable platform support the same.
This commit is contained in:
parent
ddb536e94a
commit
050e52ce46
1 changed files with 1 additions and 3 deletions
|
@ -38,9 +38,7 @@ class EventIndexPeg {
|
||||||
*/
|
*/
|
||||||
async init() {
|
async init() {
|
||||||
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
||||||
if (indexManager === null) return false;
|
if (!indexManager || await indexManager.supportsEventIndexing() !== true) {
|
||||||
|
|
||||||
if (await indexManager.supportsEventIndexing() !== true) {
|
|
||||||
console.log("EventIndex: Platform doesn't support event indexing,",
|
console.log("EventIndex: Platform doesn't support event indexing,",
|
||||||
"not initializing.");
|
"not initializing.");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue