From d3b583ea595a2445039c3f5ad8b3cdc532294016 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Fri, 22 Apr 2022 12:32:04 -0700 Subject: [PATCH] fix private bg --- resources/js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/index.js b/resources/js/index.js index ea62f46..1b26a64 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -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')) {