From cafb3597a2af966b8a74b007cf90d729aec7755a Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Wed, 21 Oct 2026 17:05:34 -0500 Subject: [PATCH] oop --- src/webpage/mainSettings.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/webpage/mainSettings.ts b/src/webpage/mainSettings.ts index eff8597..a5be5cb 100644 --- a/src/webpage/mainSettings.ts +++ b/src/webpage/mainSettings.ts @@ -1077,12 +1077,15 @@ export async function showusersettings(localuser: Localuser) { const head = document.createElement("div"); head.classList.add("flexltr", "oauthWidgetHead"); - const img = document.createElement("img"); - img.src = localuser.info.cdn + "/app-icons/" + application.id + "/" + application.icon; + if (localuser.info.cdn) { + const img = document.createElement("img"); + img.src = localuser.info.cdn + "/app-icons/" + application.id + "/" + application.icon; + head.append(img); + } const title = document.createElement("h2"); title.textContent = application.name; - head.append(img, title); + head.append(title); const permDesc = document.createElement("h4"); permDesc.textContent = I18n.oauth2.permDesc();