Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgarnier committed Sep 4, 2019
1 parent aa2b4c2 commit 3b6a388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codelab-elements/google-codelab/google_codelab.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ class Codelab extends HTMLElement {
if (feedbackLink) {
this.eventHandler_.listen(feedbackLink, events.EventType.CLICK,
(e) => {
if (userfeedback && userfeedback.api) {
if ('userfeedback' in window && userfeedback.api) {
userfeedback.api.startFeedback({productId: '5143948'});
}
});
Expand Down

0 comments on commit 3b6a388

Please sign in to comment.