diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-19 21:21:00 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-19 21:21:00 -0700 |
commit | ba02ae7f8dca794032959c62f72603b2f7814e68 (patch) | |
tree | a62a1ac8ec72d590253970c7dc5ab90dda6adc1a /ext/fg/js/util.js | |
parent | 7618b8e90904e354f43d3447363e2c5a1f98d357 (diff) |
Improved error handling
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r-- | ext/fg/js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js index 7248ae86..6f2fd28d 100644 --- a/ext/fg/js/util.js +++ b/ext/fg/js/util.js @@ -19,7 +19,7 @@ function invokeApiBg(action, params) { return new Promise((resolve, reject) => { - chrome.runtime.sendMessage({action, params}, (result, error) => { + chrome.runtime.sendMessage({action, params}, ({result, error}) => { if (error) { reject(error); } else { |