This commit is contained in:
jsnk 2025-10-27 21:11:21 +01:00
parent 6afdbaccc4
commit d5630ce74a
6 changed files with 8 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Study/Pre/files.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

View file

@ -69,22 +69,17 @@ class ExtensionService {
} }
} }
// This service handles real-time communication with the browser extension for live tab tracking. // Handles communication, browser extension for live tab tracking.
// //
// It uses callback functions that get triggered when the extension sends updates. // Callback triggered when extension updates.
// //
// The setupListener method listens for messages from the browser extension through window.postMessage. // SetupListener listens for messages from browser extension through window.postMessage.
// //
// When messages arrive, it filters them to only process ones from our specific extension. // Messages arrive, filters only process ones from specific extension.
// //
// The _handleExtensionMessage method processes different types of messages like tab updates and tracking status changes. // _handleExtensionMessage processes different types of messages, tab updates, tracking status changes.
// //
// It converts raw tab data from the extension into our TabData objects. // SendMessage method sends commands back to the extension with a source identifier.
// //
// The sendMessage method sends commands back to the extension with a source identifier. // startTracking, stopTracking, getStatus interface to control extension
// // callback allows UI to react immediately when data arrives.
// Methods like startTracking, stopTracking, and getStatus provide a clean interface to control the extension.
//
// This enables our app to show live updates as users open and close tabs in their browser.
//
// The callback pattern allows the UI to react immediately when extension data arrives.