Skip to content

Commit

Permalink
refactor: Remove uuid wrapper function
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSM-5 committed Nov 13, 2023
1 parent 887bfe8 commit 97b352c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
const addButton = document.getElementById('add');
const PROFILES = 'profiles';

const uuid = () => {
return crypto.randomUUID();
}

const getProfiles = async () => {
return (await browser.storage.sync.get(PROFILES))[PROFILES] || [];
};
Expand Down Expand Up @@ -58,7 +54,7 @@

// Save new profile
if (!targetProfile.dataset.id) {
targetProfile.dataset.id = uuid();
targetProfile.dataset.id = crypto.randomUUID();
targetProfile.classList.remove('new-profile');
profileFunction = 'createProfile';
}
Expand Down

0 comments on commit 97b352c

Please sign in to comment.