Remove the redundant image/ prefix in base64 encoded app icons in dev center

This commit is contained in:
Nariman Jelveh 2024-08-27 18:04:04 -07:00
parent d285c2097f
commit 2385457d12
3 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@
<script src="./js/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
<script src="./js/jquery.dragster.js"></script>
<script src="/puter.js/v2"></script>
<script src="https://js.puter.com/v2"></script>
<script src="./js/slugify.js"></script>
<script type="module" src="./js/html-entities.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>

View File

@ -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);

View File

@ -986,7 +986,7 @@ async function UIDesktop(options){
// 'show desktop'
if(window.is_fullpage_mode){
ht += `<a href="/" class="show-desktop-btn toolbar-btn antialiased" target="_blank" title="Show Desktop">Show Desktop <img src="${window.icons['launch-white.svg']}" style="width: 15px; height: 15px; margin-left: 5px;"></a>`;
ht += `<a href="/" class="show-desktop-btn toolbar-btn antialiased" target="_blank" title="Show Desktop">Show Desktop <img src="${window.icons['launch-white.svg']}" style="width: 10px; height: 10px; margin-left: 5px;"></a>`;
}
// refer