Could it be that your if condition never evaluates to true? Try setting a breakpoint or a console log very early in the function to see if it gets called.
Could it be that your if condition never evaluates to true? Try setting a breakpoint or a console log very early in the function to see if it gets called.