mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Make global functions immutable
This commit is contained in:
@@ -667,3 +667,5 @@ window.qBittorrent.ContextMenu = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.ContextMenu);
|
||||||
|
|||||||
@@ -142,3 +142,5 @@ window.qBittorrent.Download = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Download);
|
||||||
|
|||||||
@@ -2495,4 +2495,6 @@ window.qBittorrent.DynamicTable = (function() {
|
|||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.DynamicTable);
|
||||||
|
|
||||||
/*************************************************************/
|
/*************************************************************/
|
||||||
|
|||||||
@@ -193,3 +193,5 @@ window.qBittorrent.FileTree = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.FileTree);
|
||||||
|
|||||||
@@ -76,3 +76,5 @@ window.qBittorrent.Filesystem = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Filesystem);
|
||||||
|
|||||||
@@ -59,3 +59,5 @@ window.qBittorrent.LocalPreferences = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.LocalPreferences);
|
||||||
|
|||||||
@@ -151,3 +151,5 @@ window.qBittorrent.ProgressBar = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.ProgressBar);
|
||||||
|
|||||||
@@ -727,3 +727,5 @@ window.qBittorrent.PropFiles = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.PropFiles);
|
||||||
|
|||||||
@@ -211,3 +211,5 @@ window.qBittorrent.PropGeneral = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.PropGeneral);
|
||||||
|
|||||||
@@ -182,3 +182,5 @@ window.qBittorrent.PropPeers = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.PropPeers);
|
||||||
|
|||||||
@@ -235,3 +235,5 @@ window.qBittorrent.PropTrackers = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.PropTrackers);
|
||||||
|
|||||||
@@ -151,3 +151,5 @@ window.qBittorrent.PropWebseeds = (function() {
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.PropWebseeds);
|
||||||
|
|||||||
@@ -159,4 +159,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Filters);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -80,4 +80,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.InstallSearchPlugin);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2365,4 +2365,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Preferences);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -829,4 +829,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Rss);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -791,4 +791,6 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
|||||||
initRssDownloader();
|
initRssDownloader();
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.RssDownloader);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -737,4 +737,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.Search);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -236,4 +236,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.SearchPlugins);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -109,4 +109,6 @@
|
|||||||
|
|
||||||
return exports();
|
return exports();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Object.freeze(window.qBittorrent.TransferList);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user