Browse Source

代码清理

liudan 3 months ago
parent
commit
ca193f8f32
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pages/home/Index.jsx

+ 2 - 1
src/pages/home/Index.jsx

@@ -311,7 +311,8 @@ class Home extends React.Component {
       }, () => {
         const ua = navigator.userAgent.toLowerCase();
         if (/android/.test(ua)) {
-          window.JavaClientCall && window.JavaClientCall.mediaFilePlay( isDev ? 'https://np.h03.p0551.com/images/wav/eba7ea72748b33c07d55ca7c443d6146.wav' : this.state.voiceList[0]);
+          const src = isDev ? 'https://np.h03.p0551.com/images/wav/eba7ea72748b33c07d55ca7c443d6146.wav' : this.state.voiceList[0];
+          window.JavaClientCall && window.JavaClientCall.mediaFilePlay(src);
         }
       });
     } else {