mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-26 01:41:02 +00:00
fix private bg
This commit is contained in:
parent
b2f1946421
commit
d3b583ea59
@ -181,11 +181,11 @@ async function setBackgroundImage() {
|
|||||||
// Set default image, it will change if the bg folder exists
|
// Set default image, it will change if the bg folder exists
|
||||||
document.querySelector('#firstHalf').style.backgroundImage = `url("https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png")`
|
document.querySelector('#firstHalf').style.backgroundImage = `url("https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png")`
|
||||||
|
|
||||||
return
|
// Set the private background image
|
||||||
|
|
||||||
// Set the background image
|
|
||||||
document.querySelector('#secondHalf').style.backgroundImage = `url("../bg/private/${privImage}")`
|
document.querySelector('#secondHalf').style.backgroundImage = `url("../bg/private/${privImage}")`
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
// Check if resources folder exists
|
// Check if resources folder exists
|
||||||
const mainDir = await filesystem.readDirectory(NL_CWD)
|
const mainDir = await filesystem.readDirectory(NL_CWD)
|
||||||
if (!mainDir.find(dir => dir.entry === 'resources')) {
|
if (!mainDir.find(dir => dir.entry === 'resources')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user