Skip to content

Commit

Permalink
Return promise so that project can handle rejection (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
markholland authored Mar 21, 2024
1 parent b5faafd commit 40b45fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocumentView/DocumentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ export class DocumentView extends PureComponent<DocumentViewProps, any> {
setColorPostProcessMode = (colorPostProcessMode: Config.ColorPostProcessMode): Promise<void> => {
const tag = findNodeHandle(this._viewerRef);
if (tag != null) {
DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode);
return DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode);
}
return Promise.resolve();
}
Expand Down

0 comments on commit 40b45fe

Please sign in to comment.