reset/autoplay when window PARENT does not exist or does not contain oodles

This commit is contained in:
Jade (Rose) Rowland 2024-01-21 12:44:14 -05:00
parent 961e931c31
commit b46e8c07be

View File

@ -99,7 +99,7 @@ export function PatternsTab({ context }) {
};
const viewingPatternID = viewingPatternData?.id;
const autoResetPatternOnChange = !window.location.pathname.includes('oodles');
const autoResetPatternOnChange = !window.parent?.location.pathname.includes('oodles');
return (
<div className="px-4 w-full dark:text-white text-stone-900 space-y-2 pb-4 flex flex-col overflow-hidden max-h-full">