Skip to content

Commit

Permalink
Add a maximum number of profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kieferro committed Dec 4, 2022
1 parent c125d70 commit 7660bf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ function focusBoardTab() {
}

function addColorProfile() {
let listProfiles = document.querySelectorAll('.profile-icon.profile');

if (listProfiles.length >= 15) {
return;
}
let newProfile = document.createElement('div');
newProfile.classList.add('profile-icon');
newProfile.classList.add('profile');
Expand Down

0 comments on commit 7660bf7

Please sign in to comment.