aboutsummaryrefslogtreecommitdiffstats
path: root/twaudio.js
diff options
context:
space:
mode:
Diffstat (limited to 'twaudio.js')
-rw-r--r--twaudio.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/twaudio.js b/twaudio.js
index 218a365..cddf478 100644
--- a/twaudio.js
+++ b/twaudio.js
@@ -47,9 +47,9 @@ commands.addUserCommand(
null //relatedTarget
);
let btnPlay=contents.getElementById('play0');
- if(null==btnPlay.getAttribute('style')){ // for twaud.io's bug
- contents.location.reload();
- }else if('display: block;'==btnPlay.getAttribute('style')){
+ let btnPause=contents.getElementById('pause0');
+ if(('display: block;'==btnPlay.getAttribute('style'))
+ ||(null==btnPlay.getAttribute('style'))){
btnPlay.dispatchEvent(evt);
}else{
let btnPause=contents.getElementById('pause0');