Skip to content

Commit

Permalink
update: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceYu committed Jun 1, 2019
1 parent d4463f0 commit 5fec181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/we-validator.js
Expand Up @@ -8,7 +8,7 @@ const requiredFn = RULES.required.rule
const isWx = typeof wx !== 'undefined' && !!wx.showToast // 微信小程序
const isMy = typeof my !== 'undefined' && !!my.showToast // 支付宝小程序
const isSwan = typeof swan !== 'undefined' && !!swan.showToast // 百度智能小程序
const isTt = typeof tt !== 'undefined' && !!tt.showToast // 头条小程序
const isTt = typeof tt !== 'undefined' && !!tt.showToast // 字节跳动小程序
const isBrowser = typeof window !== 'undefined' && !!window.alert // 普通浏览器

const objString = Object.prototype.toString
Expand Down Expand Up @@ -126,7 +126,7 @@ class WeValidator {
})
}

// 头条小程序
// 字节跳动小程序
if(isTt){
return tt.showToast({
title: params.msg,
Expand Down

0 comments on commit 5fec181

Please sign in to comment.