Make global functions immutable

This commit is contained in:
Chocobo1
2021-03-23 18:50:58 +08:00
parent 901fca2d12
commit e43a9de2f3
20 changed files with 40 additions and 0 deletions

View File

@@ -667,3 +667,5 @@ window.qBittorrent.ContextMenu = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.ContextMenu);

View File

@@ -142,3 +142,5 @@ window.qBittorrent.Download = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.Download);

View File

@@ -2495,4 +2495,6 @@ window.qBittorrent.DynamicTable = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.DynamicTable);
/*************************************************************/

View File

@@ -193,3 +193,5 @@ window.qBittorrent.FileTree = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.FileTree);

View File

@@ -76,3 +76,5 @@ window.qBittorrent.Filesystem = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.Filesystem);

View File

@@ -59,3 +59,5 @@ window.qBittorrent.LocalPreferences = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.LocalPreferences);

View File

@@ -151,3 +151,5 @@ window.qBittorrent.ProgressBar = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.ProgressBar);

View File

@@ -727,3 +727,5 @@ window.qBittorrent.PropFiles = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.PropFiles);

View File

@@ -211,3 +211,5 @@ window.qBittorrent.PropGeneral = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.PropGeneral);

View File

@@ -182,3 +182,5 @@ window.qBittorrent.PropPeers = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.PropPeers);

View File

@@ -235,3 +235,5 @@ window.qBittorrent.PropTrackers = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.PropTrackers);

View File

@@ -151,3 +151,5 @@ window.qBittorrent.PropWebseeds = (function() {
return exports();
})();
Object.freeze(window.qBittorrent.PropWebseeds);