chore: add platform check
This commit is contained in:
1 parent
6d2d5de6d2
commit
3dc62a060e
4 files changed
+39
-3
No files matched your search
@@ -634,3 +634,8 @@ pub fn open_url_in_browser(url: String) -> Result<(), String> {
|
||||
pub fn exit(app: AppHandle) {
|
||||
app.exit(0x0100);
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_platform() -> String {
|
||||
std::env::consts::OS.to_string()
|
||||
}
|
||||
Reference in new issue
Block a user