Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Mar 6, 2024
1 parent aaf3978 commit a95d8a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { untilImageLoaded } from '@/helpers/untilImageLoaded.js';
* @param img
* @returns
*/
export async function readImageBlob(img: HTMLImageElement, mimeType = 'image/jpeg') {
export async function readImageAsBlob(img: HTMLImageElement, mimeType = 'image/jpeg') {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
if (!ctx) return null;
Expand Down
4 changes: 0 additions & 4 deletions src/helpers/resolveAvatarFallbackUrl.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "src/maskbook"]
"exclude": ["node_modules"]
}

0 comments on commit a95d8a3

Please sign in to comment.