Commit c7aceae
getPreviewIfAny: Use physical pixel size for preview resolution
Code was inspired by code in an MDN page (in the public domain)
https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
getPreviewIfAny: extract queryParams to get preview
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
Signed-off-by: Axel Pirek <axel.pirek@protonmail.com>1 parent 7f91121 commit c7aceae
3 files changed
+10
-5
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
| 74 | + | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments