Skip to content

Commit cb8e0f7

Browse files
committed
Fix background image download
1 parent 8c2660b commit cb8e0f7

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "viser"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
description = "3D visualization helper"
55
authors = ["brentyi <[email protected]>"]
66
readme = "README.md"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.992126cd.css",
4-
"main.js": "/static/js/main.a49fc256.js",
4+
"main.js": "/static/js/main.99842d9f.js",
55
"index.html": "/index.html",
66
"main.992126cd.css.map": "/static/css/main.992126cd.css.map",
7-
"main.a49fc256.js.map": "/static/js/main.a49fc256.js.map"
7+
"main.99842d9f.js.map": "/static/js/main.99842d9f.js.map"
88
},
99
"entrypoints": [
1010
"static/css/main.992126cd.css",
11-
"static/js/main.a49fc256.js"
11+
"static/js/main.99842d9f.js"
1212
]
1313
}

viser/client/build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Viser</title><script defer="defer" src="/static/js/main.a49fc256.js"></script><link href="/static/css/main.992126cd.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Viser</title><script defer="defer" src="/static/js/main.99842d9f.js"></script><link href="/static/css/main.992126cd.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

viser/client/build/static/js/main.a49fc256.js renamed to viser/client/build/static/js/main.99842d9f.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

viser/client/build/static/js/main.a49fc256.js.map renamed to viser/client/build/static/js/main.99842d9f.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

viser/client/src/ControlPanel/Server.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export default function ServerControls(props: {
3030
const wrapper = props.wrapperRef.current;
3131
if (wrapper === null) return;
3232

33-
if (wrapper.style.backgroundImage.startsWith("url(")) {
34-
// TODO: we should consider hiding this button if there's no background available.
33+
if (!wrapper.style.backgroundImage.startsWith("url(")) {
34+
// This should never happen.
3535
alert("No background to download!");
3636
return;
3737
}

0 commit comments

Comments
 (0)