Skip to content

Commit

Permalink
fix: lazy image vanilla placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapmaharana committed Mar 5, 2024
1 parent a0677d8 commit 02ccc5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Image/LazyImgVanilla.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ onMount(() => {
lazyloadInstance = new lazyload({
thresholds: '50px 10%',
callback_error: (img) => {
img.setAttribute('src', 'https://i.ibb.co/ZKFtJ25/image-1.png')
img.setAttribute('src', '/output.png')
},
callback_enter: handleLineLoader
})
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Stripe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import { createEventDispatcher, onMount } from 'svelte'
import { fly } from 'svelte/transition'
import { goto } from '$app/navigation'
import { OrdersService } from '$lib/services'
import { page } from '$app/stores'
import { PrimaryButton } from '$lib/ui'
import { toast } from '$lib/utils'
import Error from './Error.svelte'
import type { PaymentMethod } from './../types'
import { OrdersService } from '$lib/services'
const dispatch = createEventDispatcher()
Expand Down
Binary file added static/output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 02ccc5b

Please sign in to comment.