mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 19:13:54 +00:00
Better initialState for screenshots
This commit is contained in:
parent
d0a6063276
commit
40f278f888
1 changed files with 17 additions and 1 deletions
|
|
@ -6,7 +6,22 @@ const config = {
|
|||
equalizer: true,
|
||||
playlist: true,
|
||||
hideAbout: true,
|
||||
noMarquee: true
|
||||
noMarquee: true,
|
||||
audioUrl: null,
|
||||
initialState: {
|
||||
media: {
|
||||
status: "PLAYING",
|
||||
kbps: 128,
|
||||
khz: 44,
|
||||
length: 5,
|
||||
timeElapsed: 1,
|
||||
channels: 2,
|
||||
name: "1. DJ Mike Llama - Llama Whippin' Intro"
|
||||
},
|
||||
display: {
|
||||
working: false
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
(async () => {
|
||||
|
|
@ -37,6 +52,7 @@ const config = {
|
|||
console.log("Writing screenshot to", screenshotFile);
|
||||
await page.screenshot({ path: screenshotFile });
|
||||
await page.close();
|
||||
break;
|
||||
}
|
||||
browser.close();
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue