summaryrefslogtreecommitdiff
path: root/web/share/js/tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r--web/share/js/tools.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js
index 046813c6..f5ddae8b 100644
--- a/web/share/js/tools.js
+++ b/web/share/js/tools.js
@@ -78,7 +78,7 @@ export var tools = new function() {
};
self.partial = function(func, ...args) {
- return () => func(...args);
+ return (...rest) => func(...args, ...rest);
};
self.upperFirst = function(text) {
@@ -104,10 +104,6 @@ export var tools = new function() {
return Math.floor(Math.random() * (max - min + 1)) + min;
};
- self.formatHex = function(value) {
- return `0x${value.toString(16).toUpperCase()}`;
- };
-
self.formatSize = function(size) {
if (size > 0) {
let index = Math.floor( Math.log(size) / Math.log(1024) );