Index: lib/messaging.js |
=================================================================== |
--- a/lib/messaging.js |
+++ b/lib/messaging.js |
@@ -1,6 +1,6 @@ |
/* |
* This file is part of Adblock Plus <https://adblockplus.org/>, |
- * Copyright (C) 2006-2016 Eyeo GmbH |
+ * Copyright (C) 2006-2017 eyeo GmbH |
* |
* Adblock Plus is free software: you can redistribute it and/or modify |
* it under the terms of the GNU General Public License version 3 as |
@@ -31,7 +31,7 @@ |
this._eventEmitter = new EventEmitter(); |
this._onMessage = this._onMessage.bind(this); |
ext.onMessage.addListener(this._onMessage); |
-}; |
+} |
Port.prototype = { |
_onMessage(message, sender, sendResponse) |
@@ -47,7 +47,8 @@ |
{ |
response.then( |
sendResponse, |
- reason => { |
+ reason => |
+ { |
console.error(reason); |
sendResponse(undefined); |
} |