fix usage of deprecated api

This commit is contained in:
Brahim Hadriche committed 2024-12-17 18:55:16 -05:00
1 parent e1bcfc053a
commit 031601d49c
5 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ function Init()
m.top.ObserveField("logLine", port)
scene = m.top.getScene()
scene.ObserveFieldScoped("systemLogEvent", port)
scene.ObserveFieldScopedEx("systemLogEvent", port)
m.port = port
@@ -8,7 +8,7 @@ function LoungeGenerateManualPairingCodeTask(input as object) as object
if StringUtils.IsNullOrEmpty(input.loungeToken)
messagePort = CreateObject("roMessagePort")
loungeService.observeFieldScoped("loungeToken", messagePort)
loungeService.observeFieldScopedEx("loungeToken", messagePort)
loungeService.join = true
message = wait(30000, messagePort)
loungeService.unobserveFieldScoped("loungeToken")
@@ -67,7 +67,7 @@ namespace Http
loungeToken = m.loungeService.loungeToken
if StringUtils.IsNullOrEmpty(loungeToken)
messagePort = CreateObject("roMessagePort")
m.loungeService.observeFieldScoped("loungeToken", messagePort)
m.loungeService.observeFieldScopedEx("loungeToken", messagePort)
m.loungeService.join = true
message = wait(30000, messagePort)
m.loungeService.unobserveFieldScoped("loungeToken")
@@ -42,7 +42,7 @@ namespace Http
' If the lib_version_latest field is not available, we can give it a few seconds
' To make a request to Github to get the latest version.
msgPort = CreateObject("roMessagePort")
m.applicationInfoNode.observeFieldScoped("lib_version_latest", msgPort)
m.applicationInfoNode.observeFieldScopedEx("lib_version_latest", msgPort)
wait(5000, msgPort)
m.applicationInfoNode.unobserveFieldScoped("lib_version_latest")