Getting rid of default searxng params. Making it optional.
This commit is contained in:
@@ -228,7 +228,7 @@ Searxng.prototype.handleMessage = function(event, room) {
|
|||||||
const name = toSearch.trim();
|
const name = toSearch.trim();
|
||||||
toSearch = encodeURIComponent(toSearch);
|
toSearch = encodeURIComponent(toSearch);
|
||||||
|
|
||||||
const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length() > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch;
|
const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch;
|
||||||
this.matrixClient.sendTyping(room.roomId, true, 3000);
|
this.matrixClient.sendTyping(room.roomId, true, 3000);
|
||||||
const matrixClient = this.matrixClient;
|
const matrixClient = this.matrixClient;
|
||||||
const uploadMatrixClient = this.uploadMatrixClient;
|
const uploadMatrixClient = this.uploadMatrixClient;
|
||||||
|
|||||||
Reference in New Issue
Block a user