Lint fix
This commit is contained in:
1 parent
29651fee1f
commit
578798216d
3 files changed
+5
-5
No files matched your search
@@ -93,7 +93,7 @@ end function
|
|||||||
function OnWebServerCommand()
|
function OnWebServerCommand()
|
||||||
if m.serverTask.command.StartsWith("play:")
|
if m.serverTask.command.StartsWith("play:")
|
||||||
sender = m.videoContainer.sender ?? m.currentFocued
|
sender = m.videoContainer.sender ?? m.currentFocued
|
||||||
PlayVideo(m.serverTask.command.Mid(5), {sender: sender})
|
PlayVideo(m.serverTask.command.Mid(5), { sender: sender })
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ function LaunchArgumentsReceived()
|
|||||||
? "LaunchArgumentsReceived" m.top.launchArgs
|
? "LaunchArgumentsReceived" m.top.launchArgs
|
||||||
if m.top.launchArgs <> invalid and m.top.launchArgs.contentId <> invalid
|
if m.top.launchArgs <> invalid and m.top.launchArgs.contentId <> invalid
|
||||||
sender = m.videoContainer.sender ?? m.currentFocued
|
sender = m.videoContainer.sender ?? m.currentFocued
|
||||||
PlayVideo(m.top.launchArgs.contentId, {sender: sender})
|
PlayVideo(m.top.launchArgs.contentId, { sender: sender })
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -120,6 +120,6 @@ function InputArgumentsReceived()
|
|||||||
? "InputArgumentsReceived" m.top.inputArgs
|
? "InputArgumentsReceived" m.top.inputArgs
|
||||||
if m.top.inputArgs <> invalid and m.top.inputArgs.contentId <> invalid
|
if m.top.inputArgs <> invalid and m.top.inputArgs.contentId <> invalid
|
||||||
sender = m.videoContainer.sender ?? m.currentFocued
|
sender = m.videoContainer.sender ?? m.currentFocued
|
||||||
PlayVideo(m.top.inputArgs.contentId, {sender: sender})
|
PlayVideo(m.top.inputArgs.contentId, { sender: sender })
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -3,7 +3,7 @@ import "pkg:/components/Dialog/DialogUtils.bs"
|
|||||||
|
|
||||||
function PlayVideo(videoId as string, args = invalid as object)
|
function PlayVideo(videoId as string, args = invalid as object)
|
||||||
sender = args?.sender
|
sender = args?.sender
|
||||||
metadata = args?.metadata
|
metadata = args?.metadata
|
||||||
|
|
||||||
if metadata <> invalid and GetInterface(metadata, "ifSGNodeField") <> invalid
|
if metadata <> invalid and GetInterface(metadata, "ifSGNodeField") <> invalid
|
||||||
metadata = args.metadata.getFields()
|
metadata = args.metadata.getFields()
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ function SetMetadata() as void
|
|||||||
if m.top.metadata = invalid
|
if m.top.metadata = invalid
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
metadata = m.top.metadata
|
metadata = m.top.metadata
|
||||||
contentNode = CreateObject("roSGNode", "ContentNode")
|
contentNode = CreateObject("roSGNode", "ContentNode")
|
||||||
contentNode.addFields({ metadata: metadata })
|
contentNode.addFields({ metadata: metadata })
|
||||||
|
|||||||
Reference in new issue
Block a user