From 2385457d125ce9ccba8b0960e8bddbce18ed020a Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Tue, 27 Aug 2024 18:04:04 -0700 Subject: [PATCH] Remove the redundant `image/` prefix in base64 encoded app icons in dev center --- src/dev-center/index.html | 2 +- src/dev-center/js/dev-center.js | 2 +- src/gui/src/UI/UIDesktop.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev-center/index.html b/src/dev-center/index.html index e69ecda5..4046b446 100644 --- a/src/dev-center/index.html +++ b/src/dev-center/index.html @@ -245,7 +245,7 @@ - + diff --git a/src/dev-center/js/dev-center.js b/src/dev-center/js/dev-center.js index 6cda6853..f45e958e 100644 --- a/src/dev-center/js/dev-center.js +++ b/src/dev-center/js/dev-center.js @@ -1111,7 +1111,7 @@ $(document).on('click', '#edit-app-icon', async function (e) { let mimeType = getMimeType(fileExtension); // Replace MIME type in the data URL - image = image.replace('data:application/octet-stream;base64', `data:image/${mimeType};base64`); + image = image.replace('data:application/octet-stream;base64', `data:${mimeType};base64`); $('#edit-app-icon').css('background-image', `url(${image})`); $('#edit-app-icon').attr('data-base64', image); diff --git a/src/gui/src/UI/UIDesktop.js b/src/gui/src/UI/UIDesktop.js index 7959643a..18d5e4d1 100644 --- a/src/gui/src/UI/UIDesktop.js +++ b/src/gui/src/UI/UIDesktop.js @@ -986,7 +986,7 @@ async function UIDesktop(options){ // 'show desktop' if(window.is_fullpage_mode){ - ht += `Show Desktop `; + ht += `Show Desktop `; } // refer