Initial commit of PhoneCoach project

This commit is contained in:
2025-08-16 03:37:24 +05:30
parent f14485a833
commit 5326b855dd
8 changed files with 436 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
let selectedText = "";
document.addEventListener("mouseup", () => {
const selection = window.getSelection().toString().trim();
if (selection) {
selectedText = selection;
chrome.storage.local.set({ selectedText });
}
});