Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
fix private bg
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Apr 22, 2022
1 parent b2f1946 commit d3b583e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ async function setBackgroundImage() {
// 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")`

return

// Set the background image
// Set the private background image
document.querySelector('#secondHalf').style.backgroundImage = `url("../bg/private/${privImage}")`

return

// Check if resources folder exists
const mainDir = await filesystem.readDirectory(NL_CWD)
if (!mainDir.find(dir => dir.entry === 'resources')) {
Expand Down

0 comments on commit d3b583e

Please sign in to comment.