diff options
-rw-r--r-- | background.js | 6 | ||||
-rw-r--r-- | firefox_manifest.json | 2 | ||||
-rw-r--r-- | manifest.json | 2 |
3 files changed, 8 insertions, 2 deletions
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(); diff --git a/firefox_manifest.json b/firefox_manifest.json index 12182309..8b8f939e 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 7df90773..b365cedd 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": [ { |