andrey-leshenko / WaTracker

Track your friends' and enemies' WhatsApp activity.
MIT License
89 stars 23 forks source link

Stored locally? #5

Open HeeringsNET opened 6 years ago

HeeringsNET commented 6 years ago

Hello Andrey,

Love your extention / code, a little creepy that it's so easy but very cool at the same time :) In your README you say that the extention stores the data locally, can you tell me where it stores the data? I've been looking around for about a hour but I can't find anything.

Thanks in advance 👍

andrey-leshenko commented 6 years ago

Hello,

The Chrome App uses a local IndexedDB database. The relevant code is in background.js. The database is opened by the openDatabase() function, with the opening itself happening here. You can see some of the writes to the database happening here and here.

You can also inspect the database using the Chrome development tools, by right-clicking the window, selecting 'Inspect', going to the 'Application' tab, and clicking the 'IndexedDB' option from the pane on the left.

Hope this helps, Andrey

HeeringsNET commented 6 years ago

Hello Andrey,

Thanks for your reply, I'll look into it once I have some time :)

Kind regards, Rowin