Catch audio error
This commit is contained in:
parent
97d645f1ea
commit
4cdb647716
@ -178,6 +178,7 @@ function wrapVoiceMessage(audioEl: AudioElement) {
|
|||||||
|
|
||||||
const setAnimation = () => {
|
const setAnimation = () => {
|
||||||
animateSingle(() => {
|
animateSingle(() => {
|
||||||
|
if(!audio) return false;
|
||||||
onTimeUpdate();
|
onTimeUpdate();
|
||||||
return !audio.paused;
|
return !audio.paused;
|
||||||
}, audioEl);
|
}, audioEl);
|
||||||
|
@ -12,7 +12,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
|
|||||||
const allowedIPs = ['127.0.0.1'];
|
const allowedIPs = ['127.0.0.1'];
|
||||||
const devMode = process.env.NODE_ENV !== 'production';
|
const devMode = process.env.NODE_ENV !== 'production';
|
||||||
const useLocal = true;
|
const useLocal = true;
|
||||||
const useLocalNotLocal = false;
|
const useLocalNotLocal = true;
|
||||||
|
|
||||||
if(devMode) {
|
if(devMode) {
|
||||||
console.log('DEVMODE IS ON!');
|
console.log('DEVMODE IS ON!');
|
||||||
@ -37,7 +37,7 @@ const opts = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const domain = 'yourdomain.com';
|
const domain = 'yourdomain.com';
|
||||||
const localIp = '192.168.93.183';
|
const localIp = '10.17.0.210';
|
||||||
|
|
||||||
const middleware = (req, res, next) => {
|
const middleware = (req, res, next) => {
|
||||||
let IP = '';
|
let IP = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user