Skip to content

Commit

Permalink
压缩后catch关键字处理
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Aug 19, 2019
1 parent 369b295 commit a7e4d42
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/recorder-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion recorder.mp3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion recorder.wav.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/recorder-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://github.com/xiangyuecn/Recorder
"use strict";

//兼容环境
window.RecorderLM="2019-8-17 12:12:03";
window.RecorderLM="2019-8-19 23:13:37";
var NOOP=function(){};
//end 兼容环境 ****从以下开始copy源码,到wav、mp3前面为止*****

Expand Down Expand Up @@ -169,7 +169,7 @@ Recorder.prototype=initFn.prototype={
};
var pro=Recorder.Scope.getUserMedia({audio:true},f1,f2);
if(pro&&pro.then){
pro.then(f1)["catch"](f2);
pro.then(f1)[True&&"catch"](f2); //fix 关键字,保证catch压缩时保持字符串形式
};
}
//关闭释放录音资源
Expand Down

0 comments on commit a7e4d42

Please sign in to comment.