diff --git a/background.js b/background.js index 04e644af10..e76d7daf8a 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(); diff --git a/firefox_manifest.json b/firefox_manifest.json index 121823094e..8b8f939eab 100644 --- a/firefox_manifest.json +++ b/firefox_manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.4", + "version": "1.0.5", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ { diff --git a/manifest.json b/manifest.json index 7df9077395..b365cedd80 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.4", + "version": "1.0.5", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ {