clean up settings constructor
This commit is contained in:
parent
8678d9f053
commit
0a388cdb83
4 changed files with 94 additions and 38 deletions
|
|
@ -5,7 +5,12 @@ let playlist;
|
|||
let currentTrack = 0;
|
||||
let player;
|
||||
|
||||
const mediaPlaying = new Setting('mediaPlaying', 'Media Playing', 'boolean', false, null, true);
|
||||
const mediaPlaying = new Setting('mediaPlaying', {
|
||||
name: 'Media Playing',
|
||||
type: 'boolean',
|
||||
defaultValue: false,
|
||||
sticky: true,
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// add the event handler to the page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue