www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a97e27a9f2b23639023b9eb9168e525e9bba4dd8
parent 45f0a9e28a9732ff0fd0c1ac36701c82a65c7157
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 17 Jul 2015 16:20:26 -0400

Fix CSS in snapshots of Reader View

Allow saving of CSS links over chrome://. We can scope this to
chrome://global/skin/aboutReader.css if anyone thinks of a reason why
this was disabled to begin with, but I'm not sure in what other
situations CSS it would apply.

Diffstat:
Mchrome/content/zotero/webpagedump/domsaver.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/webpagedump/domsaver.js b/chrome/content/zotero/webpagedump/domsaver.js @@ -639,7 +639,8 @@ var wpdDOMSaver = { if (medium != "" && medium.indexOf("screen") < 0 && medium.indexOf("all") < 0) { return ""; } - if (aCSS.href != null && aCSS.href.indexOf("chrome") == 0) return ""; + // Disabled by Dan S. to fix CSS on snapshots of Reader View + //if (aCSS.href != null && aCSS.href.indexOf("chrome") == 0) return ""; var flag = ""; // Added by Dan S. for Zotero