commit 47d56c6633764404c8ad5c7e16905c8d7cf48d4f
parent 390bda5be0d3f28204c27c10783d57471a5a7b1b
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 27 Jan 2022 22:32:39 +0100
Fix linter issues
Diffstat:
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/helpers/BlurhashEncoder.ts b/helpers/BlurhashEncoder.ts
@@ -31,8 +31,7 @@ export class BlurhashEncoder {
constructor() {
if (typeof Worker !== 'undefined') {
- console.log("created Worker!");
- this.worker = new Worker(new URL('./workers/blurhash.worker.ts', import.meta.url));
+ this.worker = new Worker(new URL('./workers/blurhash.worker.ts', import.meta.url)); // eslint-disable-line unicorn/relative-url-style
}
this.worker?.addEventListener("message", this.onMessage.bind(this));
}
@@ -50,9 +49,7 @@ export class BlurhashEncoder {
const seq = this.seq++;
const deferred = defer<string>();
this.pendingDeferredMap.set(seq, deferred);
- console.log("Making blurhash");
this.worker?.postMessage({ seq, imageData });
- console.log("returning blurhash promise");
return deferred.promise;
}
}
\ No newline at end of file
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx
@@ -444,7 +444,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
event_id: event_id,
hasFullyLoaded: true,
displayname: profile.displayname,
- avatar_url: profile.avatar_url || null
+ avatar_url: profile.avatar_url || null // eslint-disable-line unicorn/no-null
}
};
} catch (error) {