[CRX] Call callback instead of onCompleted
This commit is contained in:
parent
3eaeacfe19
commit
7e345b223c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user