diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-08-22 15:49:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 15:49:24 -0400 |
commit | f0c974d319d9fb4c50c9a4a8f665a642edb77d58 (patch) | |
tree | 71855fd155b8072e9ce627a6643938065ef44b5d /ext/mixed/js/yomichan.js | |
parent | 9fa0f2a56a79159227f1f42455157fe9c84132d3 (diff) |
Move generateId to core.js (#748)
Diffstat (limited to 'ext/mixed/js/yomichan.js')
-rw-r--r-- | ext/mixed/js/yomichan.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/mixed/js/yomichan.js b/ext/mixed/js/yomichan.js index 2de82274..9e049d41 100644 --- a/ext/mixed/js/yomichan.js +++ b/ext/mixed/js/yomichan.js @@ -84,16 +84,6 @@ const yomichan = (() => { this.sendMessage({action: 'yomichanReady'}); } - generateId(length) { - const array = new Uint8Array(length); - crypto.getRandomValues(array); - let id = ''; - for (const value of array) { - id += value.toString(16).padStart(2, '0'); - } - return id; - } - isExtensionUrl(url) { try { return url.startsWith(chrome.runtime.getURL('/')); |