Skip to content

Commit

Permalink
Merge pull request cocos#745 from Marssssssss/v2.1.3fixcapturenosighf…
Browse files Browse the repository at this point in the history
…orwechat

add warning about run capture_to_wechat not in wechat game
  • Loading branch information
knoxHuang authored Aug 20, 2019
2 parents 60c0613 + b3a04a5 commit 95bd3c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/cases/07_capture_texture/capture_to_wechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@ cc.Class({
}
});
}
else {
let self = this;
self.label.string = '该样例只支持微信小游戏平台';
cc.log('该样例只支持微信小游戏平台');
}
}
});

0 comments on commit 95bd3c4

Please sign in to comment.