mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
@@ -44,6 +44,7 @@ window.qBittorrent.Misc = (function() {
|
||||
safeTrim: safeTrim,
|
||||
toFixedPointString: toFixedPointString,
|
||||
containsAllTerms: containsAllTerms,
|
||||
sleep: sleep,
|
||||
MAX_ETA: 8640000
|
||||
};
|
||||
};
|
||||
@@ -218,6 +219,12 @@ window.qBittorrent.Misc = (function() {
|
||||
});
|
||||
};
|
||||
|
||||
const sleep = (ms) => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
};
|
||||
|
||||
return exports();
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user