mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix typo
This commit is contained in:
@ -13,8 +13,6 @@ function setOption(options, key = null, newValue = null) {
|
|||||||
module.exports = (win, options) => [
|
module.exports = (win, options) => [
|
||||||
{
|
{
|
||||||
label: "Set Global Song Controls",
|
label: "Set Global Song Controls",
|
||||||
type: "checkbox",
|
|
||||||
checked: true,
|
|
||||||
click: () => promptKeybind(options, win)
|
click: () => promptKeybind(options, win)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25,6 +23,7 @@ module.exports = (win, options) => [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//will not be needed if globalKeybinds will be an object
|
||||||
function getGlobalKeybinds(options) {
|
function getGlobalKeybinds(options) {
|
||||||
let playPause, next, previous;
|
let playPause, next, previous;
|
||||||
if (options.global) {
|
if (options.global) {
|
||||||
@ -44,6 +43,7 @@ function getGlobalKeybinds(options) {
|
|||||||
return { playPause, next, previous };
|
return { playPause, next, previous };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//will not be needed if globalKeybinds will be an object
|
||||||
function setGlobalKeybinds(options, newShortcuts) {
|
function setGlobalKeybinds(options, newShortcuts) {
|
||||||
let didSet = {};
|
let didSet = {};
|
||||||
for (const shortcut in newShortcuts) {
|
for (const shortcut in newShortcuts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user