mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-03-11 17:15:49 +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(())
|
||||||
}).ok();
|
}).ok();
|
||||||
webview.add_new_window_requested(move |_w, msg| {
|
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!({
|
let data = json!({
|
||||||
"object": "transport",
|
"object": "transport",
|
||||||
"type": 1,
|
"type": 1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue