diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 5a7b5b940a..3e1bd00e28 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -30,6 +30,7 @@ ////////////////////////////////////////////////////////////////////////////// // Class to provide options for bibliography +// Used by rtfScan.xul, integrationDocPrefs.xul, and bibliography.xul var Zotero_File_Interface_Bibliography = new function() { var _io, _saveStyle; @@ -45,7 +46,10 @@ var Zotero_File_Interface_Bibliography = new function() { function init() { // Set font size from pref // Affects bibliography.xul and integrationDocPrefs.xul - Zotero.setFontSize(document.getElementById("zotero-bibliography-container")); + var bibContainer = document.getElementById("zotero-bibliography-container"); + if(bibContainer) { + Zotero.setFontSize(document.getElementById("zotero-bibliography-container")); + } if(window.arguments && window.arguments.length) { _io = window.arguments[0];