From a97e27a9f2b23639023b9eb9168e525e9bba4dd8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 17 Jul 2015 16:20:26 -0400 Subject: [PATCH] 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. --- chrome/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 index e2ff7d791..26ea7ccc7 100644 --- 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