浏览代码

don’t show Smile! if countdown is false

Artur Paikin 6 年之前
父节点
当前提交
7a640071cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@uppy/webcam/src/index.js

+ 1 - 1
packages/@uppy/webcam/src/index.js

@@ -318,7 +318,7 @@ module.exports = class Webcam extends Plugin {
   }
 
   focus () {
-    if (this.opts.countdown) return
+    if (!this.opts.countdown) return
     setTimeout(() => {
       this.uppy.info(this.i18n('smile'), 'success', 1500)
     }, 1000)