Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Aug 1, 2024
1 parent 5aee70b commit 0f30d1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function nonNullable<T>(value: T): value is NonNullable<T> {
}

export let dev = import.meta.env.DEV
Hooks.on('ready', () => { if (!dev) dev = game.settings.get('pf2e-graphics', 'dev') as boolean })
Hooks.on('ready', () => {
if (!dev) dev = game.settings.get('pf2e-graphics', 'dev') as boolean
})

export function devMessage(...args: any) {
if (dev) console.log(`[%cPF2e Graphics%c %cDEV%c]`, 'color: yellow', '', 'color: #20C20E;', '', ...args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
// This file is basically to not have Svelte re-render the image every time the window changes.
let thumb = ''
ImageHelper.createThumbnail(img, { width: 200, height: 200 }).then((v) => { thumb = v.thumb })
ImageHelper
.createThumbnail(img, { width: 200, height: 200 })
.then((v) => { thumb = v.thumb })
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
Expand Down

0 comments on commit 0f30d1a

Please sign in to comment.