From 7e345b223c615916382187b3761872d9181e71a0 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Sun, 11 Oct 2015 17:35:16 +0200 Subject: [PATCH] [CRX] Call callback instead of onCompleted --- web/chromecom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/chromecom.js b/web/chromecom.js index 23d59e595..6823dd3a1 100644 --- a/web/chromecom.js +++ b/web/chromecom.js @@ -275,7 +275,7 @@ var ChromeCom = (function ChromeComClosure() { function onDisconnect() { // When the connection fails, ignore the error and call the callback. port = null; - onCompleted(); + callback(); } function onCompleted() { port.onDisconnect.removeListener(onDisconnect);