File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4747    "@capacitor/core" : " ^7.0.1"  ,
4848    "@fortawesome/fontawesome-free" : " ^6.5.2"  ,
4949    "@tauri-apps/api" : " ^2.3.0"  ,
50-     "@tauri-apps/cli" : " ^2.3.1 "  ,
50+     "@tauri-apps/cli" : " ^2.5.0 "  ,
5151    "@vitejs/plugin-vue" : " ^5.2.1"  ,
5252    "crypto-es" : " ^2.1.0"  ,
5353    "d3" : " ^7.9.0"  ,
Original file line number Diff line number Diff line change @@ -60,13 +60,17 @@ export function isCapacitorWeb() {
6060    return  false ; 
6161} 
6262
63+ export  function  isTauri ( )  { 
64+     return  "__TAURI_INTERNALS__"  in  window ; 
65+ } 
66+ 
6367export  function  checkBrowserCompatibility ( )  { 
6468    const  isWebSerial  =  checkWebSerialSupport ( ) ; 
6569    const  isWebBluetooth  =  checkWebBluetoothSupport ( ) ; 
6670    const  isWebUSB  =  checkWebUSBSupport ( ) ; 
6771    const  isChromium  =  isChromiumBrowser ( ) ; 
6872
69-     const  isNative  =  Capacitor . isNativePlatform ( ) ; 
73+     const  isNative  =  Capacitor . isNativePlatform ( )   ||   isTauri ( ) ; 
7074
7175    const  compatible  =  isNative  ||  ( isChromium  &&  ( isWebSerial  ||  isWebBluetooth  ||  isWebUSB ) ) ; 
7276
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments