mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 02:11:25 +01:00
* Search and install plugins PoC * Checksum * Tab sidebar for settings * Fix nested tabs, and tweaks * Table for plugin results * Deep links working * Focus window during deep links * Merge branch 'master' into plugin-directory * More stuff
24 lines
492 B
Rust
24 lines
492 B
Rust
pub fn get_os() -> &'static str {
|
|
if cfg!(target_os = "windows") {
|
|
"windows"
|
|
} else if cfg!(target_os = "macos") {
|
|
"macos"
|
|
} else if cfg!(target_os = "linux") {
|
|
"linux"
|
|
} else {
|
|
"unknown"
|
|
}
|
|
}
|
|
|
|
pub fn get_ua_platform() -> &'static str {
|
|
if cfg!(target_os = "windows") {
|
|
"Win"
|
|
} else if cfg!(target_os = "macos") {
|
|
"Mac"
|
|
} else if cfg!(target_os = "linux") {
|
|
"Linux"
|
|
} else {
|
|
"Unknown"
|
|
}
|
|
}
|