mirror of
https://github.com/Manoj-HV30/PhonoCoach.git
synced 2026-05-16 19:35:26 +00:00
Initial commit of PhoneCoach project
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
let selectedText = "";
|
||||
document.addEventListener("mouseup", () => {
|
||||
const selection = window.getSelection().toString().trim();
|
||||
if (selection) {
|
||||
selectedText = selection;
|
||||
chrome.storage.local.set({ selectedText });
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user