mirror of
https://github.com/michivonah/click-guide.git
synced 2025-12-22 22:16:28 +01:00
beginn development of MVP
This commit is contained in:
parent
38ef57f310
commit
cfb4959168
12 changed files with 138 additions and 0 deletions
10
chrome/popup.js
Normal file
10
chrome/popup.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
let isRecording = false;
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.getElementById("toggle-recording").addEventListener("click", () => {
|
||||
isRecording = !isRecording;
|
||||
const message = isRecording ? "start" : "stop";
|
||||
chrome.runtime.sendMessage({ action: message });
|
||||
document.getElementById("toggle-recording").textContent = isRecording ? "Stop Recording" : "Start Recording";
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue