[skip ci] small optm
This commit is contained in:
1 parent
7b4306914d
commit
0fb3759c50
2 files changed
+4
-4
No files matched your search
@@ -127,9 +127,9 @@ namespace SponsorBlock
|
||||
return invalid
|
||||
end function
|
||||
|
||||
function OnPositionChangeSkipSponsorBlockSections() as void
|
||||
function OnPositionChangeSkipSponsorBlockSections(event as object) as void
|
||||
segments = m.skipSegments
|
||||
position = m.top.position
|
||||
position = event.getData()
|
||||
|
||||
segment = FindSegmentByTime(segments, position)
|
||||
if segment = invalid
|
||||
|
||||
@@ -353,12 +353,12 @@ function MarkVideoWatched(videoId as dynamic) as void
|
||||
m.top.ObserveFieldScoped("position", FuncName(OnPositionChangeMarkWatchTime))
|
||||
end function
|
||||
|
||||
function OnPositionChangeMarkWatchTime() as void
|
||||
function OnPositionChangeMarkWatchTime(event as object) as void
|
||||
if m.markVideoWatchedTask = invalid
|
||||
return
|
||||
end if
|
||||
|
||||
currentPosition = m.top.position
|
||||
currentPosition = event.getData()
|
||||
currentWatchTimeMarker = m.watchTimeMarker
|
||||
m.watchTimeMarker = (currentPosition \ 20) * 20
|
||||
if currentWatchTimeMarker = currentPosition
|
||||
|
||||
Reference in new issue
Block a user