diff options
author | Mario <mario@mariovavti.com> | 2020-12-28 10:12:25 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-28 10:12:25 +0000 |
commit | 9670833a5ddc3c24343202fda6f29875e9b3b10b (patch) | |
tree | d7ce12d622000bcddabb86c398b4a76a9bc52272 /view/js/main.js | |
parent | f4bfa779425dc4f55db86bc554624bb05b09c49f (diff) | |
download | volse-hubzilla-9670833a5ddc3c24343202fda6f29875e9b3b10b.tar.gz volse-hubzilla-9670833a5ddc3c24343202fda6f29875e9b3b10b.tar.bz2 volse-hubzilla-9670833a5ddc3c24343202fda6f29875e9b3b10b.zip |
files_ng: provide a fallback in case the server timed out on compressing the zip file
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js index 7df705603..3e3fd057c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1997,3 +1997,13 @@ function sse_fallback() { sse_handleNotifications(obj, false, false); }); } + +function makeid(length) { + var result = ''; + var characters = 'abcdef0123456789'; + var charactersLength = characters.length; + for ( var i = 0; i < length; i++ ) { + result += characters.charAt(Math.floor(Math.random() * charactersLength)); + } + return result; +} |