mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ac8ffbe76a
Before this change, attempting to use ActionCable inside a web worker would result in an exception being thrown: ``` ReferenceError: window is not defined ``` By replacing the `window` reference with `self`, which is available in both a window context and a worker context, we can avoid this error. Ref: https://developer.mozilla.org/en-US/docs/Web/API/Window/self |
||
---|---|---|
.. | ||
channel | ||
connection | ||
javascript/src | ||
server | ||
stubs | ||
subscription_adapter | ||
client_test.rb | ||
test_helper.rb | ||
test_helper_test.rb | ||
worker_test.rb |