mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
v2
This commit is contained in:
20
plugins/picture-in-picture/menu.js
Normal file
20
plugins/picture-in-picture/menu.js
Normal file
@ -0,0 +1,20 @@
|
||||
const { setOptions } = require("./back.js");
|
||||
|
||||
module.exports = (_win, options) => [
|
||||
{
|
||||
label: "Save window position",
|
||||
type: "checkbox",
|
||||
checked: options.savePosition,
|
||||
click: (item) => {
|
||||
setOptions({ savePosition: item.checked });
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Save window size",
|
||||
type: "checkbox",
|
||||
checked: options.saveSize,
|
||||
click: (item) => {
|
||||
setOptions({ saveSize: item.checked });
|
||||
},
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user