Use local ip for dash
This commit is contained in:
1 parent
bfe8a3c860
commit
51966cb33f
4 files changed
+14
-15
No files matched your search
@@ -7,12 +7,12 @@ end function
|
||||
|
||||
function OnNodeReady()
|
||||
address = m.webserver@.GetServerAddress(invalid)
|
||||
isValidIp = not StringUtils.IsNullOrEmpty(address)
|
||||
if isValidIp
|
||||
isValidAddress = not StringUtils.IsNullOrEmpty(address)
|
||||
if isValidAddress
|
||||
m.top.url = address
|
||||
end if
|
||||
m.top.findNode("noInternet").visible = not isValidIp
|
||||
m.top.findNode("yesInternet").visible = isValidIp
|
||||
m.top.findNode("noInternet").visible = not isValidAddress
|
||||
m.top.findNode("yesInternet").visible = isValidAddress
|
||||
end function
|
||||
|
||||
function OnUrlSet()
|
||||
|
||||
Reference in new issue
Block a user