From c7cb845d8a541ecc01ae90bc9d4e4a1109921442 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 26 Jul 2019 14:19:01 -0400 Subject: [PATCH] Added quick fix for changing UUID when submitting two times. --- background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/background.js b/background.js index 04e644af..e76d7daf 100644 --- a/background.js +++ b/background.js @@ -198,6 +198,12 @@ function getUserID(callback) { userID = userIDStorage; callback(userID); } else { + //double check if a UUID hasn't been created since this was first called + if (userID != null) { + callback(userID); + return; + } + //generate a userID userID = generateUUID();