From 3084ca3165788ff60e3dcac0b8887d6e8eb38aeb Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Fri, 30 Jul 2021 16:10:16 +0300 Subject: [PATCH] Fix open external --- src/stremio_app/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stremio_app/app.rs b/src/stremio_app/app.rs index 3598e0e..77b1c38 100644 --- a/src/stremio_app/app.rs +++ b/src/stremio_app/app.rs @@ -137,7 +137,7 @@ impl MainWindow { if let Some(arg) = msg.get_params() { // FIXME: THIS IS NOT SAFE BY ANY MEANS // open::that("calc").ok(); does exactly that - let arg = arg.to_string(); + let arg = arg.as_str().unwrap_or(""); let arg_lc = arg.to_lowercase(); if arg_lc.starts_with("http://") || arg_lc.starts_with("https://")