Fixes for review

This commit is contained in:
ICheered
2023-08-05 13:43:44 +02:00
parent 9d03408513
commit b0c044aa3a
7 changed files with 92 additions and 85 deletions

View File

@@ -23,8 +23,8 @@ export const isDebug = new URLSearchParams(location.search).has('debug');
const Stats = isDebug
? await import('stats.js').then(
res => /** @type {typeof import('stats.js')} */ (res['default'])
)
res => /** @type {typeof import('stats.js')} */(res['default'])
)
: null;
/** @extends Component<{ getPreview?: () => Promise<Blob> }, { error?: string }> */
@@ -96,9 +96,9 @@ export class Preview extends Component {
blob,
ratio
? {
resizeWidth: canvas.width,
resizeHeight: canvas.height
}
resizeWidth: canvas.width,
resizeHeight: canvas.height
}
: {}
);
if (!ratio) {