Change to background image loader
This commit is contained in:
1 parent
05a1a71e6b
commit
cc7d06e78b
1 file changed
+1
-1
@@ -615,7 +615,7 @@ const setRoomBackground = (roomToLoad: room) => {
|
||||
const width = Floorplan.floorplanDiv.width()
|
||||
const height = Floorplan.floorplanDiv.height()
|
||||
|
||||
if(roomToLoad.background_image) {
|
||||
if(roomToLoad.background_image != "") {
|
||||
Floorplan.floorplanDiv.css("background-image", `url('/images/rooms/${roomToLoad.background_image}')`)
|
||||
Floorplan.floorplanDiv.css("background-size", `${width}px ${height}px`)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user