mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Move JavaScript code into explicit namespaces
This cleans up the global namespace by explicitly exporting shared values. All html and JavaScript files have been converted to use explicit exports except for client.js and mocha-init.js
This commit is contained in:
@@ -37,9 +37,9 @@
|
||||
const origValues = new URI().getData('orig').split('|');
|
||||
|
||||
const values = {
|
||||
ratioLimit: friendlyFloat(origValues[0], 2),
|
||||
ratioLimit: window.qBittorrent.Misc.friendlyFloat(origValues[0], 2),
|
||||
seedingTimeLimit: parseInt(origValues[1]),
|
||||
maxRatio: friendlyFloat(origValues[2], 2),
|
||||
maxRatio: window.qBittorrent.Misc.friendlyFloat(origValues[2], 2),
|
||||
maxSeedingTime: parseInt(origValues[3])
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user