diff options
author | Richard Macklin <richard.github@nrm.com> | 2018-10-18 22:00:06 -0700 |
---|---|---|
committer | Richard Macklin <richard.github@nrm.com> | 2019-01-14 17:44:35 -0800 |
commit | ac8ffbe76a90d89a5655bea6af5abcac6c7320e0 (patch) | |
tree | 0b9a0d21d7e04c56d15d899f479740a3d6f444c5 /actiontext/app/helpers/action_text | |
parent | fcd38cf19fa6249d5b62bbe887fde6120408e9c3 (diff) | |
download | rails-ac8ffbe76a90d89a5655bea6af5abcac6c7320e0.tar.gz rails-ac8ffbe76a90d89a5655bea6af5abcac6c7320e0.tar.bz2 rails-ac8ffbe76a90d89a5655bea6af5abcac6c7320e0.zip |
Replace `window` references in ActionCable with `self`
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
Diffstat (limited to 'actiontext/app/helpers/action_text')
0 files changed, 0 insertions, 0 deletions