Skip to content

Commit

Permalink
fix: import
Browse files Browse the repository at this point in the history
  • Loading branch information
DSergiu committed Apr 22, 2024
1 parent 46a8241 commit 0b555d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/nextjs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ export default function Home() {
useEffect(() => {
console.warn('next.js in dev mode will call useEffect twice. Link: https://react.dev/reference/react/StrictMode#fixing-bugs-found-by-double-rendering-in-development');

import('../../../../packages/vanilla-hcaptcha');
import('@hcaptcha/vanilla-hcaptcha');

if (captchaRef.current) {

captchaRef.current.addEventListener('verified', (e: Event) => {
// @ts-ignore
const token = e.token;
Expand Down

0 comments on commit 0b555d7

Please sign in to comment.