aboutsummaryrefslogtreecommitdiffhomepage
path: root/background.js
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-12-13 21:55:43 -0500
committerAjay Ramachandran <[email protected]>2019-12-13 21:55:43 -0500
commita5baebab3fe04bfab79f61e2a6c1583e781a90dc (patch)
treeb9f302aa1586119daae618881b0011022a42b4c9 /background.js
parentb34e6076e40793fd56a847b551e4fb6d9c508f2e (diff)
downloadSponsorBlock-a5baebab3fe04bfab79f61e2a6c1583e781a90dc.tar.gz
SponsorBlock-a5baebab3fe04bfab79f61e2a6c1583e781a90dc.zip
Fixed new submissions getting added to the downloaded submissions.
Diffstat (limited to 'background.js')
-rw-r--r--background.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/background.js b/background.js
index 3961009b..ae1f7e45 100644
--- a/background.js
+++ b/background.js
@@ -215,22 +215,4 @@ function sendRequestToServer(type, address, callback) {
//submit this request
xmlhttp.send();
-}
-
-function generateUserID(length = 36) {
- let charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- let result = "";
- if (window.crypto && window.crypto.getRandomValues) {
- values = new Uint32Array(length);
- window.crypto.getRandomValues(values);
- for (i = 0; i < length; i++) {
- result += charset[values[i] % charset.length];
- }
- return result;
- } else {
- for (let i = 0; i < length; i++) {
- result += charset[Math.floor(Math.random() * charset.length)];
- }
- return result;
- }
-}
+} \ No newline at end of file