Skip to content

Commit

Permalink
fix: 🐛 issues reported by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
melMass committed May 11, 2024
1 parent 324478f commit 9473c92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/typed-art.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const processTypedInput = async (
throw Error('No typedinput')
}

let blob = new Blob([data.typedinput], {
const blob = new Blob([data.typedinput], {
type: 'text/plain;charset=utf-8',
})
let file = new File([blob], 'typed.txt', {
const file = new File([blob], 'typed.txt', {
type: 'text/plain',
lastModified: Date.now(),
})
Expand All @@ -21,7 +21,7 @@ export const processTypedInput = async (
data.artifact.reader = URL.createObjectURL(blob)

// generate cover automatically
let coverFile = await generateTypedArtCoverImage(
const coverFile = await generateTypedArtCoverImage(
data.typedinput,
data.isMonoType === true
)
Expand All @@ -43,7 +43,7 @@ export const processTypedInput = async (
// ensure if it's not monospace type, remove any occurences of `monospace` in tags
// otherwise it will not render correctly on objkt.
else if (!data.isMonoType && lower_tags.includes('monospace')) {
let newTags = tags
const newTags = tags
.filter((tag) => tag.toLowerCase() !== 'monospace')
.join(',')
data.tags = newTags
Expand Down

0 comments on commit 9473c92

Please sign in to comment.