Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the scope parameter from the "GetOperatorList" handler in src/core/worker.js (PR 11110 follow-up) #12476

Merged
merged 1 commit into from
Oct 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ class WorkerMessageHandler {
});
});

handler.on(
"GetOperatorList",
function wphSetupRenderPage(data, sink) {
handler.on("GetOperatorList", function wphSetupRenderPage(data, sink) {
var pageIndex = data.pageIndex;
pdfManager.getPage(pageIndex).then(function (page) {
var task = new WorkerTask(`GetOperatorList: page ${pageIndex}`);
Expand Down Expand Up @@ -645,15 +643,12 @@ class WorkerMessageHandler {

sink.error(reason);

// TODO: Should `reason` be re-thrown here (currently that
// casues "Uncaught exception: ..." messages in the
// console)?
// TODO: Should `reason` be re-thrown here (currently that casues
// "Uncaught exception: ..." messages in the console)?
}
);
});
},
this
);
});

handler.on("GetTextContent", function wphExtractText(data, sink) {
var pageIndex = data.pageIndex;
Expand Down