weather: fix ipinfo undef err
This commit is contained in:
parent
e79895b8f2
commit
7223622933
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ Singleton {
|
||||||
|
|
||||||
command: ["curl", "ipinfo.io"]
|
command: ["curl", "ipinfo.io"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: root.loc = JSON.parse(text).loc
|
onStreamFinished: root.loc = JSON.parse(text).loc ?? ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue