Textureactive bug

image
ZIM 015 - TextureActive Physics - Code Creativity
All textureactives examples can't be run in microsoft edge,why?

Well, that's annoying. In TextureActive, we add content property to the canvas and now in later version of Chromium, they have added content as a reserved word. Thanks for letting us know. We will have to go back and adjust 5 versions of ZIM. That does allow us to retrofit 5 versions with a better Waiter() - which in another bug was found leaving a Ticker running after done.

We have an easy fix - we just have to rename .canvas to .textureActive in two places. So we will go back and patch 015, 016, 017, 018, 019, 020 - will let you know here when we are done. We will also do an announcement.

If you want, you can add this code to the top of your app to avoid the problem too. This removes the new content property that is conflicting.

<script>
// Hotfix for legacy ZIM TextureActive in Chromium/Edge
delete HTMLCanvasElement.prototype.content;
</script>

Okay - the patches all the way back to 015 are in place - and the latest NPM. We have made an announcement in ANNOUNCEMENTS and in Discord. Thanks.