fix: fix last two engage bugs

This commit is contained in:
2026-04-12 20:14:52 +09:30
parent 89f50f774f
commit 48fbcde6ae
2 changed files with 58 additions and 5 deletions
@@ -1,4 +1,5 @@
import type { Plugin } from "../../core/types";
import { isSeqtaEngageExperience } from "@/seqta/utils/isSeqtaEngage";
interface NotificationCollectorStorage {
lastNotificationCount: number;
@@ -15,6 +16,10 @@ const notificationCollectorPlugin: Plugin<{}, NotificationCollectorStorage> = {
disableToggle: true,
run: async (api) => {
if (isSeqtaEngageExperience()) {
return () => {};
}
let pollInterval: number | null = null;
let isVisible = !document.hidden;
let baseInterval = 30000; // 30 seconds