Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

385 B
Raw Blame
/**
 * This is a stub for custom form onsubmit handlers Plausible users may have on their websites.
 * Overriding onsubmit with a custom handler is common practice in web development for a variety of reasons (mostly UX),
 * so this stub can be used in tests to simulate such behavior.
 */
export const customSubmitHandlerStub =
  '"event.preventDefault(); console.log(\'Submitted\')"'