Skip to content

Commit

Permalink
Ensure the className is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ramadis committed Oct 9, 2018
1 parent 8734eb1 commit 6369aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessengerCustomerChat.js
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ export default class MessengerCustomerChat extends Component {
const element = event.target;
if (
element.className &&
typeof element.className.includes === 'function' &&
typeof element.className === 'string' &&
element.className.includes('fb_dialog')
) {
this.controlPlugin();

0 comments on commit 6369aaf

Please sign in to comment.