File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ async function UIWindowShare(items, recipient){
2222 return new Promise ( async ( resolve ) => {
2323 let h = '' ;
2424 h += `<div style="padding: 30px 40px 20px; border-bottom: 1px solid #ced7e1;">` ;
25- h += `<div class="qr-code-window-close-btn generic-close-window-button" style="margin: 5px;"> × </div>` ;
25+ h += `<div class="generic-close-window-button" style="margin: 5px;"> × </div>` ;
2626
2727 //------------------------------------------------
28- // Icon
28+ // Icons
2929 //------------------------------------------------
3030
31- // 1 item shared
32- h += `<div style="display:flex; justify-content: center; margin-bottom: 10px;">` ;
31+ h += `<div style="display:flex; justify-content: center; margin-bottom: 10px; disable-user-select">` ;
32+ // 1 item shared
3333 if ( items . length === 1 )
3434 h += `<img src="${ items [ 0 ] . icon } " style="width:70px; height:70px;">` ;
3535 // 2 items shared
@@ -58,7 +58,6 @@ async function UIWindowShare(items, recipient){
5858 h += `<img src="${ items [ 3 ] . icon } " style="width:70px; height:70px; margin-left:-60px; margin-top: -35px; z-index:2; transform:scale(0.4);">` ;
5959 h += `<img src="${ items [ 4 ] . icon } " style="width:70px; height:70px; margin-left:-60px; margin-top: -45px; z-index:1; transform:scale(0.2);">` ;
6060 }
61-
6261 h += `</div>` ;
6362
6463 // ------------------------------------------------
Original file line number Diff line number Diff line change @@ -36,7 +36,17 @@ const launch_app = async (options)=>{
3636 }
3737
3838 // If the app object is not provided, get it from the server
39- let app_info = options . app_obj ?? await puter . apps . get ( options . name ) ;
39+ let app_info ;
40+
41+ // explorer is a special case
42+ if ( options . name === 'explorer' ) {
43+ console . log ( 'explorer' ) ;
44+ app_info = [ ] ;
45+ }
46+ else if ( options . app_obj )
47+ app_info = options . app_obj ;
48+ else
49+ app_info = await puter . apps . get ( options . name ) ;
4050
4151 // For backward compatibility reasons we need to make sure that both `uuid` and `uid` are set
4252 app_info . uuid = app_info . uuid ?? app_info . uid ;
You can’t perform that action at this time.
0 commit comments