javascript - Getting access to window object in JSM -
i creating firefox extension. want reference window object in jsm file.
file imported using
components.utils.import("resource://js/my_module.jsm");
in my_module.jsm there line:
var jqenv = window.content.document;
which throws error, "window not defined"
how can access window object in jsm file?
to access window object want, see documentation.
Comments
Post a Comment