Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix: step numbering starts at 2 instead of 1

Luis Ortiz2aea8918fbf2
diff --git a/entrypoints/background.ts b/entrypoints/background.ts
index 1c27c3f..b749f3a 100644
--- a/entrypoints/background.ts
+++ b/entrypoints/background.ts
@@ -194,9 +194,8 @@ export default defineBackground(() => {
return;
}
+ const stepIndex = actor.getSnapshot().context.stepCount;
actor.send({ type: 'USER_ACTION' });
-
- const stepCount = actor.getSnapshot().context.stepCount;
const guideId = snap.context.currentGuideId!;
const stepId = crypto.randomUUID();
const tabId = sender.tab?.id;
@@ -225,7 +224,7 @@ export default defineBackground(() => {
await db.steps.add({
id: stepId,
guideId,
- index: stepCount,
+ index: stepIndex,
description: fallbackDescription,
action: msg.action,
url: currentUrl,