mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2026-10-04 02:04:28 +00:00
fix
This commit is contained in:
@@ -8,7 +8,6 @@ export default class DialPadAudioElements {
|
|||||||
chrome.runtime.getURL(`audios/dtmf-${encodeURIComponent(i)}.mp3`)
|
chrome.runtime.getURL(`audios/dtmf-${encodeURIComponent(i)}.mp3`)
|
||||||
);
|
);
|
||||||
const audio = this.keySounds[i];
|
const audio = this.keySounds[i];
|
||||||
console.log({ i, audio }, "xquanluu");
|
|
||||||
if (audio) {
|
if (audio) {
|
||||||
audio.volume = 0.5;
|
audio.volume = 0.5;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ export const DialPad = ({ handleDigitPress }: DialPadProbs) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.addEventListener("keydown", handleKeyDown);
|
document.addEventListener("keydown", handleKeyDown);
|
||||||
return () => {
|
return () => {
|
||||||
console.log("xquanluu1231");
|
|
||||||
document.removeEventListener("keydown", handleKeyDown);
|
document.removeEventListener("keydown", handleKeyDown);
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user