Skip to content

Commit

Permalink
(#5) Apply fix suggested by frg
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacSchemm committed Dec 3, 2019
1 parent 265ad54 commit e9ab699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/seamonkey/content/PdfStreamConverter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function getContainingBrowser(domWindow) {
}

function getFindBar(domWindow) {
if (PdfjsContentUtils.isRemote) {
if (Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_CONTENT) {
throw new Error("FindBar is not accessible from the content process.");
}
try {
Expand Down Expand Up @@ -358,7 +358,7 @@ class ChromeActions {
}

// ... and we are in a child process
if (PdfjsContentUtils.isRemote) {
if (Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_CONTENT) {
return true;
}

Expand Down

0 comments on commit e9ab699

Please sign in to comment.