MessageReceiver: Can't use arrow function if it is to be new'd

This commit is contained in:
Scott Nonnenberg 2018-04-10 16:53:01 -07:00
parent e99192dca7
commit d5043eb9cf
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -1025,7 +1025,13 @@ MessageReceiver.prototype.extend({
window.textsecure = window.textsecure || {};
textsecure.MessageReceiver = (url, username, password, signalingKey, options) => {
textsecure.MessageReceiver = function MessageReceiverWrapper(
url,
username,
password,
signalingKey,
options
) {
const messageReceiver = new MessageReceiver(
url,
username,