Skip to content

Commit

Permalink
Fix oversize canvas on high-DPI displays
Browse files Browse the repository at this point in the history
  • Loading branch information
bvisness committed Feb 15, 2021
1 parent be3acca commit 1a5109e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
except FileNotFoundError:
pass

shutil.rmtree('build')
try:
shutil.rmtree('build')
except:
pass
os.makedirs('build', exist_ok=True)
os.chdir('build')

Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}

.error-output {
Expand Down

0 comments on commit 1a5109e

Please sign in to comment.