Skip to content

Commit

Permalink
fix iOS Safari MessageChannel + bfcache bug, close #624
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 21, 2019
1 parent aa12976 commit a63625c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/internals/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ if (!set || !clear) {
defer = function (id) {
Dispatch.now(runner(id));
};
// Browsers with MessageChannel, includes WebWorkers
} else if (MessageChannel) {
// Browsers with MessageChannel, includes WebWorkers, except iOS - https://github.com/zloirock/core-js/issues/624
} else if (MessageChannel && !/(iphone|ipod|ipad).*applewebkit/i.test(userAgent)) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
Expand Down

0 comments on commit a63625c

Please sign in to comment.