array.find polyfill for Twitter plugin

53 views
Skip to first unread message

zemoxian

unread,
Apr 7, 2018, 9:15:23 PM4/7/18
to TiddlyWiki
Has anyone run into the “Object doesn’t support property or method ‘find’” error on IE? I don’t usually us IE but I just did and ran into this error. I tracked it down to the Twitter plugin. (I had to disable the plugin on my phone to access the page on this particular computer that only has IE 11 installed. )

I was wondering if there’s a TiddlyWiki polyfill for this function already. Or if it could be added to the Twitter plugin specifically.

Thanks

zemoxian

unread,
Jul 14, 2018, 10:15:22 AM7/14/18
to TiddlyWiki
As an update, I’ve found that I can copy and paste a simple polyfill into a tiddler. Then set its type to “application/javascript” and plugin-type to “startup”. I’ve run into this on a few older browsers/ OSs.

I didn’t wrap them in (function(){}) bodies or add “use strict”; or anything so I don’t know if there are side effects that I might encounter down the line. So far, it seems to work fine.
Reply all
Reply to author
Forward
0 new messages