From 97b352c3e56a3875b6dce5581227ceeb90f40e07 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 13 Nov 2023 09:28:34 -0500 Subject: [PATCH] refactor: Remove uuid wrapper function --- options/options.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/options/options.js b/options/options.js index aa936ea..534e5c2 100644 --- a/options/options.js +++ b/options/options.js @@ -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] || []; }; @@ -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'; }