mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-11 06:30:25 +00:00
gui: gate the macOS overlay layout to macOS
Shell injects the OS; Windows/Linux keep the native title bar with no traffic-light insets. Thin scrollbars on Windows/Linux so panels stop losing width to classic scrollbars.
This commit is contained in:
@@ -577,7 +577,10 @@ pub fn run() {
|
||||
let http = format!("http://127.0.0.1:{port}");
|
||||
let ws = format!("ws://127.0.0.1:{port}");
|
||||
// Debug-format yields a quoted JS string literal.
|
||||
let inject = format!("window.__COWORKER_HTTP__={http:?};window.__COWORKER_WS__={ws:?};");
|
||||
let inject = format!(
|
||||
"window.__COWORKER_HTTP__={http:?};window.__COWORKER_WS__={ws:?};window.__OCW_PLATFORM__={:?};",
|
||||
std::env::consts::OS
|
||||
);
|
||||
|
||||
tauri::Builder::default()
|
||||
// MUST be the first plugin: when a second launch happens (e.g. the user relaunches
|
||||
|
||||
Reference in New Issue
Block a user