From a6a3a144d2dd7f2c20c88aa6857cf68d6397ae05 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 1 Jun 2025 17:47:00 +0200 Subject: [PATCH] remove debug print (AGAIN) --- .config/quickshell/services/Booru.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/services/Booru.qml b/.config/quickshell/services/Booru.qml index 8baebfeb6..49256bfa7 100644 --- a/.config/quickshell/services/Booru.qml +++ b/.config/quickshell/services/Booru.qml @@ -30,7 +30,6 @@ Singleton { "description": qsTr("All-rounder | Good quality, decent quantity"), "mapFunc": (response) => { return response.map(item => { - console.log(JSON.stringify(item, null, 2)) return { "id": item.id, "width": item.width, @@ -338,7 +337,6 @@ Singleton { params.push("is_nsfw=" + (nsfw ? "null" : "false")) // null is random } else if (currentProvider === "t.alcy.cc") { - console.log(`"${tagString}"`) url += tagString params.push("json") params.push("quantity=" + limit) @@ -363,7 +361,7 @@ Singleton { function makeRequest(tags, nsfw=false, limit=20, page=1) { var url = constructRequestUrl(tags, nsfw, limit, page) - console.log("[Booru] Making request to " + url) + // console.log("[Booru] Making request to " + url) const newResponse = root.booruResponseDataComponent.createObject(null, { "provider": currentProvider, @@ -378,7 +376,7 @@ Singleton { xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200) { try { - console.log("[Booru] Raw response: " + xhr.responseText) + // console.log("[Booru] Raw response: " + xhr.responseText) const provider = providers[currentProvider] let response; if (provider.manualParseFunc) { @@ -387,7 +385,7 @@ Singleton { response = JSON.parse(xhr.responseText) response = provider.mapFunc(response) } - console.log("[Booru] Mapped response: " + JSON.stringify(response)) + // console.log("[Booru] Mapped response: " + JSON.stringify(response)) newResponse.images = response newResponse.message = response.length > 0 ? "" : root.failMessage