Error fix - Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. (#94)
Error fix - Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. (#94)

* console error fix - When element 'parent' is doesn't exists in DOM, plugin throws error - Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

* ternary condition added

* ternary condition removed and if added

* parent set as null initially

* container element check fix

dollarshaveclub/reframe.js,dollarshaveclub/reframe.js