Clarifying which settings are required and optional in example.js

This commit is contained in:
q
2025-12-15 16:43:07 -05:00
parent 2effd5ec95
commit 2e74637c79
2 changed files with 36 additions and 10 deletions

View File

@@ -274,9 +274,11 @@ Searxng.prototype.handleMessage = function(event, room) {
};
Searxng.prototype.startUploadMatrixClient = function() {
(async () => {
this.uploadMatrixClient.startClient({initialSyncLimit: 1});
})();
if (this.uploadMatrixClient != undefined && this.uploadMatrixClient != this.matrixClient) {
(async () => {
this.uploadMatrixClient.startClient({initialSyncLimit: 1});
})();
}
}
Searxng.prototype.getFormattedHelp = function() {