style(return-begin): returnBegin -> seekBegin

This commit is contained in:
JLoeve 2021-01-08 20:40:44 +08:00
parent 5164d69c90
commit c14e8b7701

View File

@ -201,7 +201,7 @@ if (supportedUrls.some(url => document.URL.startsWith(url))) {
takeScreenshot: clickElement('.video-take-screenshot'), takeScreenshot: clickElement('.video-take-screenshot'),
previousFrame: clickElement('.prev-frame'), previousFrame: clickElement('.prev-frame'),
nextFrame: clickElement('.next-frame'), nextFrame: clickElement('.next-frame'),
returnBegin: () => { seekBegin: () => {
if (!unsafeWindow.player) { if (!unsafeWindow.player) {
return return
} }
@ -237,7 +237,7 @@ if (supportedUrls.some(url => document.URL.startsWith(url))) {
takeScreenshot: 'ctrl alt c', takeScreenshot: 'ctrl alt c',
previousFrame: 'shift arrowLeft', previousFrame: 'shift arrowLeft',
nextFrame: 'shift arrowRight', nextFrame: 'shift arrowRight',
returnBegin: '0' seekBegin: '0'
} }
const parseBindings = (bindings: { [action: string]: string }) => { const parseBindings = (bindings: { [action: string]: string }) => {
return Object.entries(bindings).map(([actionName, keyString]) => { return Object.entries(bindings).map(([actionName, keyString]) => {