Step 1: Use the general condition
For $ax^2+2hxy+by^2+2gx+2fy+c=0$ the determinant $abc+2fgh-af^2-bg^2-ch^2=0$.
Step 2: Substitute
Here $a=b=0$ and the cross and linear coefficients are $h,g,f$ in place of $2h,2g,2f$. The condition becomes $\dfrac{fgh}{4}-\dfrac{ch^2}{4}=0$.