An opinionated toast component for React.
Fresh deno compatibility (#263)
hapaxlifec4ff0853c65b
diff --git a/src/index.tsx b/src/index.tsxindex ab59831..ecdd523 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -398,6 +398,7 @@ const Toast = (props: ToastProps) => {function getDocumentDirection(): ToasterProps['dir'] {if (typeof window === 'undefined') return 'ltr';+ if (typeof document === 'undefined') return 'ltr'; // For Fresh purposeconst dirAttribute = document.documentElement.getAttribute('dir');