mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
[CRX] Call callback instead of onCompleted
This commit is contained in:
parent
3eaeacfe19
commit
7e345b223c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue