-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a chrome extension for recording arbitrary web apps #8537
Comments
To create a Chrome extension for recording arbitrary web apps, follow these steps based on the
chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => {
switch (message.action) {
case 'init':
// Initialize recording
break;
case 'stop':
// Stop recording
break;
}
return true;
});
const sendMessageToPageScript = (payload, callback) => {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
chrome.tabs.sendMessage(tabs[0]?.id ?? 0, payload, callback);
});
};
These steps provide a foundation for building a Chrome extension capable of recording arbitrary web apps, leveraging the Highlight SDK and Chrome APIs. References/sdk/firstload/src/browserExtension/extensionListener.ts |
No description provided.
The text was updated successfully, but these errors were encountered: