mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Remove the redundant image/
prefix in base64 encoded app icons in dev center
This commit is contained in:
parent
d285c2097f
commit
2385457d12
@ -245,7 +245,7 @@
|
|||||||
<script src="./js/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
<script src="./js/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="./js/jquery.dragster.js"></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 src="./js/slugify.js"></script>
|
||||||
<script type="module" src="./js/html-entities.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>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
|
||||||
|
@ -1111,7 +1111,7 @@ $(document).on('click', '#edit-app-icon', async function (e) {
|
|||||||
let mimeType = getMimeType(fileExtension);
|
let mimeType = getMimeType(fileExtension);
|
||||||
|
|
||||||
// Replace MIME type in the data URL
|
// 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').css('background-image', `url(${image})`);
|
||||||
$('#edit-app-icon').attr('data-base64', image);
|
$('#edit-app-icon').attr('data-base64', image);
|
||||||
|
@ -986,7 +986,7 @@ async function UIDesktop(options){
|
|||||||
|
|
||||||
// 'show desktop'
|
// 'show desktop'
|
||||||
if(window.is_fullpage_mode){
|
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
|
// refer
|
||||||
|
Loading…
Reference in New Issue
Block a user