generateCallID method added
This commit is contained in:
parent
afa7815ebe
commit
25b84ba8b2
1 changed files with 10 additions and 0 deletions
|
|
@ -123,6 +123,16 @@ function compareThunderbirdVersions(v1, v2) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
function generateCallID(length) {
|
||||
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
let result = '';
|
||||
const charactersLength = characters.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// The following methods are a modified version derived from https://github.com/ali-raheem/Aify/blob/13ff87583bc520fb80f555ab90a90c5c9df797a7/plugin/content_scripts/compose.js
|
||||
|
|
|
|||
Loading…
Reference in a new issue