Fix open external

This commit is contained in:
Vladimir Borisov 2021-07-30 16:10:16 +03:00
parent e5a3264906
commit 3084ca3165

View file

@ -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://")