mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-01-11 22:40:32 +00:00
Fix open external
This commit is contained in:
parent
e5a3264906
commit
3084ca3165
1 changed files with 1 additions and 1 deletions
|
|
@ -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://")
|
||||
|
|
|
|||
Loading…
Reference in a new issue