mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Removed passive event listeners
This commit is contained in:
parent
39059ddcd4
commit
ef92622833
@ -3,7 +3,6 @@ import Header from 'components/layout/header/header';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { Inter } from 'next/font/google';
|
||||
import { notFound } from 'next/navigation';
|
||||
import Script from 'next/script';
|
||||
import { ReactNode, Suspense } from 'react';
|
||||
import { supportedLanguages } from '../../../i18n-config';
|
||||
import './../../globals.css';
|
||||
@ -56,9 +55,6 @@ export default async function LocaleLayout({ children, params: { locale } }: Loc
|
||||
|
||||
return (
|
||||
<html lang={locale} className={inter.variable}>
|
||||
<Script id="passive-event-listeners">
|
||||
{`document.addEventListener('touchstart', onTouchStart, {passive: true})`}
|
||||
</Script>
|
||||
<body className="flex min-h-screen flex-col">
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
<Header locale={locale} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user