Skip to content

Commit 40b45fe

Browse files
authored
Return promise so that project can handle rejection (#663)
1 parent b5faafd commit 40b45fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocumentView/DocumentView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ export class DocumentView extends PureComponent<DocumentViewProps, any> {
948948
setColorPostProcessMode = (colorPostProcessMode: Config.ColorPostProcessMode): Promise<void> => {
949949
const tag = findNodeHandle(this._viewerRef);
950950
if (tag != null) {
951-
DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode);
951+
return DocumentViewManager.setColorPostProcessMode(tag, colorPostProcessMode);
952952
}
953953
return Promise.resolve();
954954
}

0 commit comments

Comments
 (0)