zotero/chrome/chromeFiles/content/scholar/include.js
Dan Stillman 9abad678fe Changed core, DB, and data access methods to create everything under a global Scholar object that can be shared across windows
Added include.js for use in non-browser.xul windows to bring in the SCHOLAR_CONFIG and Scholar objects

Adjusted sidebar to use shared object

Added test line (displayable by clicking "Hello, World" before and after sidebar load to demonstrate cross-window access
2006-03-20 21:47:22 +00:00

6 lines
305 B
JavaScript

var Scholar_browserWindow = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getMostRecentWindow("navigator:browser");
const SCHOLAR_CONFIG = Scholar_browserWindow.SCHOLAR_CONFIG;
var Scholar = Scholar_browserWindow.Scholar;