mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Added quick fix for changing UUID when submitting two times.
This commit is contained in:
@@ -198,6 +198,12 @@ function getUserID(callback) {
|
|||||||
userID = userIDStorage;
|
userID = userIDStorage;
|
||||||
callback(userID);
|
callback(userID);
|
||||||
} else {
|
} else {
|
||||||
|
//double check if a UUID hasn't been created since this was first called
|
||||||
|
if (userID != null) {
|
||||||
|
callback(userID);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//generate a userID
|
//generate a userID
|
||||||
userID = generateUUID();
|
userID = generateUUID();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user