Solved by setting a variable with initial window width, then finding the width after resize event. If widths don’t match, run function!
Solved by setting a variable with initial window width, then finding the width after resize event. If widths don’t match, run function!