mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-01-11 22:40:32 +00:00
Do not borrow the file string
This commit is contained in:
parent
e4802d7566
commit
263b97e78d
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ impl PartialUi for WebView {
|
|||
Ok(())
|
||||
}).ok();
|
||||
webview.add_new_window_requested(move |_w, msg| {
|
||||
if let Some(file) = msg.get_uri().ok().and_then(|str| {decode(&str.as_str()).ok().map(Cow::into_owned)}) {
|
||||
if let Some(file) = msg.get_uri().ok().and_then(|str| {decode(str.as_str()).ok().map(Cow::into_owned)}) {
|
||||
let data = json!({
|
||||
"object": "transport",
|
||||
"type": 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue