3 ms·
Can you use window.postMessage() on Firefox? Barnes & Noble's (?!) NobleJS library has a setImmediate() polyfill, which uses postMessage() on Firefox: https://
by cpeterso 13y ago
Can you use window.postMessage() on Firefox? Barnes & Noble's (?!) NobleJS library has a setImmediate() polyfill, which uses postMessage() on Firefox:
https://github.com/NobleJS/setImmediate/blob/master/setImmediate.js#L202 https://github.com/NobleJS/setImmediate/blob/master/setImmed...
- swannodette 13y agoWe could use postMessage but it's rather frustrating since that's a global post and we have detect our own messages on the other side. So until Firefox supports MessageChannel we're unlikely to go that route.