Closed torokati44 closed 6 months ago
I suggest switching return false
to return !!navigator.plugins.namedItem("Shockwave Flash")
. This is also useful for browsers that can still support Flash, like Pale Moon or Basilisk.
Great idea. I tested this with Ruffle and it works. 🙌
Pushing this up now.
It's a bit cut off on the right, not sure if that's Ruffle's fault, or the SWF is just like that. Would have to check in Flash Player to be sure.
The Flash demo is hard-coded to be unsupported, even though, with Ruffle, it works.
I recommend something similar to this method: https://stackoverflow.com/a/42815720/635587 In place of this: https://github.com/sparkbox/bouncy-ball/blob/7f2f5ca70d5f7eaf2003e219a3ef9c6d21fc5dae/site/js/updatePanes.js#L89-L92