Skip to content

Commit d70289d

Browse files
committed
Fix windows handler
1 parent e67bbbf commit d70289d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn unregister(scheme: &str) -> Result<()> {
4141

4242
pub fn listen<F: FnMut(String) + Sync + Send + 'static>(mut handler: F) -> Result<()> {
4343
windows_single::init(Box::new(move |args, _| {
44-
handler(args.join(" "));
44+
handler(args.into_iter().nth(1).unwrap_or_default());
4545
}));
4646

4747
Ok(())

0 commit comments

Comments
 (0)