Skip to content

Commit

Permalink
Check hasTransferSupport on 'self' instead of (potentially-error-indu…
Browse files Browse the repository at this point in the history
…cingly) relying on self being equiv to the global context (see #43)
  • Loading branch information
padolsey committed Nov 12, 2016
1 parent 9d925c9 commit 8abee52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/BrowserWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function workerBoilerScript() {
cmd: 'result',
token: data.token,
result: res
}, hasTransferSupport && transfers || []);
}, self.hasTransferSupport && transfers || []);
}

function extractTransfers(args) {
Expand Down

0 comments on commit 8abee52

Please sign in to comment.