mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-01 22:45:18 +00:00
Remove debug logs
This commit is contained in:
parent
12a1437d0d
commit
1529301a84
1 changed files with 1 additions and 7 deletions
|
|
@ -37,20 +37,14 @@ export default class Media {
|
|||
// Via: https://stackoverflow.com/a/43395068/1263117
|
||||
// TODO #leak
|
||||
if (this._context.state === "suspended") {
|
||||
console.log("Suspended on init");
|
||||
const resume = async (e) => {
|
||||
console.log("Resuming", e);
|
||||
const resume = async () => {
|
||||
await this._context.resume();
|
||||
console.log("Resuming");
|
||||
|
||||
if (this._context.state === "running") {
|
||||
console.log("Runnign!");
|
||||
// TODO: Add this to the disposable
|
||||
document.body.removeEventListener("touchend", resume, false);
|
||||
document.body.removeEventListener("click", resume, false);
|
||||
document.body.removeEventListener("keydown", resume, false);
|
||||
} else {
|
||||
console.log("Not running");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue