Skip to content

Commit

Permalink
fix: Uncaught TypeError in action api demo (GoogleChrome#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
boymax1 authored Jan 24, 2022
1 parent a8b8851 commit 50c8e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/action/demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ document.getElementById('set-badge-background-color-button').addEventListener('c
}

// Next, generate a random RGBA color
let color = [0, 0, 0].map(() => Math.floor(Math.random * 255));
let color = [0, 0, 0].map(() => Math.floor(Math.random() * 255));

// Use the default background color ~10% of the time.
//
Expand Down

0 comments on commit 50c8e0b

Please sign in to comment.