aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-rw-r--r--js/src/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util.js b/js/src/util.js
index f4a584125..fccf6178c 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -99,7 +99,7 @@ const Util = (($) => {
getUID(prefix) {
do {
- prefix += ~~(Math.random() * 1000000)
+ prefix += ~~(Math.random() * 1000000) // "~~" acts like a faster Math.floor() here
} while (document.getElementById(prefix))
return prefix
},