Skip to content

Commit e05f15f

Browse files
committed
fix(pencil): Auto event persist
1 parent 4d6d00d commit e05f15f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/securenative.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default class SecureNative {
3838
const config: SecureNativeOptions = { ...options, ...defaultOptions };
3939

4040
const eventManager = new EventManager(fetch, config);
41+
if (options.autoSend) {
42+
eventManager.startEventsPersist();
43+
}
4144
SecureNative.initialize(eventManager, config);
4245
}
4346

0 commit comments

Comments
 (0)