Skip to content

Commit

Permalink
docs(clipboard): example in readme not working on firefox
Browse files Browse the repository at this point in the history
Fixes the example that is given in the docs not working on Firefox, because the initial attempt starts off in a `setTimeout` which isn't allowed.

Fixes #18449.
  • Loading branch information
crisbeto authored and mmalerba committed Mar 6, 2020
1 parent a6f8121 commit e0c4d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/clipboard/clipboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class HeroProfile {
pending.destroy();
}
};
setTimeout(attempt);
attempt();
}
}
```
Expand Down

0 comments on commit e0c4d9e

Please sign in to comment.