Closed vfan closed 7 years ago
I have the same issue. Do you have any ideas, how to fix it?
I'm not sure if this was the source of the original issue, but it appears the example was encountering this error due to the use of a for...in
loop over an HTMLContainer
. I've pushed a commit that should fix that along with a few other issues.
I also experimented with adding a canvas
element to the document and didn't see any problems, so I'm going to assume the for...in
loop was the cause of the original issue as well.
That helped! Thanks!
Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. in function NinePatchGetStyle, you may need to add try catch.. var computedStyle = window.getComputedStyle(element, "");