Skip to content

Commit

Permalink
Fix #89
Browse files Browse the repository at this point in the history
Bind before setting prototype
  • Loading branch information
el1t committed Jan 24, 2018
1 parent 263502f commit 37cf0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/safari/client-injected.js
Expand Up @@ -75,9 +75,9 @@ if ( window.Worker instanceof Function ) {
return new RealWorker(window.URL.createObjectURL(new Blob([';'], {type:'text/javascript'})));
};
return new RealWorker(url);
};
}.bind(window);
WrappedWorker.prototype = RealWorker.prototype;
window.Worker = WrappedWorker.bind(window);
window.Worker = WrappedWorker;
};

// __MSG_historyScript__
Expand Down

0 comments on commit 37cf0d0

Please sign in to comment.