state.js: more reliable isStateful detection

This commit is contained in:
Masen Furer 2024-10-08 16:41:19 -07:00
parent 4bbd988411
commit 6eb808ca2c
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -119,7 +119,7 @@ export const isStateful = () => {
if (event_queue.length === 0) {
return false;
}
return event_queue.some(event => event.name.includes("___"));
return event_queue.some(event => event.name.startsWith(main_state_name));
};
/**