From 5587cce165217479ba5a1af00c5b10fda2dedbbe Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Wed, 14 Sep 2011 11:59:20 -0700 Subject: [PATCH 1/3] Check for continuation callback --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 5a193fe89..37afdc376 100644 --- a/pdf.js +++ b/pdf.js @@ -3379,7 +3379,7 @@ var Page = (function() { } catch (e) { exc = e.toString(); } - continuation(exc); + if (continuation) continuation(exc); }); }; From de253dcbe32205e12c666b8835d16f7c1379502d Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Wed, 14 Sep 2011 16:26:36 -0700 Subject: [PATCH 2/3] Check for stylesheet presence (font.js) If doc doesn't have a stylesheet, create one. --- fonts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fonts.js b/fonts.js index 9ba1d876e..7d51e2c4b 100755 --- a/fonts.js +++ b/fonts.js @@ -1291,6 +1291,10 @@ var Font = (function Font() { window.btoa(data) + ');'); var rule = "@font-face { font-family:'" + fontName + "';src:" + url + '}'; var styleSheet = document.styleSheets[0]; + if (!styleSheet) { + document.documentElement.firstChild.appendChild( document.createElement('style') ); + styleSheet = document.styleSheets[0]; + } styleSheet.insertRule(rule, styleSheet.cssRules.length); return rule; From 1a79f3fb43a8ba8a072df546993bf3f1733dfa3b Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Thu, 15 Sep 2011 09:33:19 -0700 Subject: [PATCH 3/3] Changed exec flags of non-exec files (chmod -x) --- fonts.js | 0 web/compatibility.js | 0 web/viewer.css | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 fonts.js mode change 100755 => 100644 web/compatibility.js mode change 100755 => 100644 web/viewer.css diff --git a/fonts.js b/fonts.js old mode 100755 new mode 100644 diff --git a/web/compatibility.js b/web/compatibility.js old mode 100755 new mode 100644 diff --git a/web/viewer.css b/web/viewer.css old mode 100755 new mode 100644