formatting/minor
This commit is contained in:
@ -120,6 +120,7 @@ initialize = () => {
|
|||||||
const togglePlayback = () => {
|
const togglePlayback = () => {
|
||||||
if (window.isPlaying) {
|
if (window.isPlaying) {
|
||||||
sound.stop();
|
sound.stop();
|
||||||
|
sound.unload();
|
||||||
} else {
|
} else {
|
||||||
sound.play();
|
sound.play();
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ import {useState, React} from "react";
|
|||||||
import jQuery from "jquery";
|
import jQuery from "jquery";
|
||||||
import Play from '@mui/icons-material/PlayArrow';
|
import Play from '@mui/icons-material/PlayArrow';
|
||||||
import Pause from '@mui/icons-material/Pause';
|
import Pause from '@mui/icons-material/Pause';
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import "@styles/player.css";
|
@import "@styles/player.css";
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user