closes #349, import/export failing on null sandbox URI

i have no idea why some people are getting this error when it seems like no one encountered it during beta testing (very specific platform issues?), but i'm fairly certain that this should fix it.
This commit is contained in:
Simon Kornblith 2006-10-11 03:52:31 +00:00
parent c83a4e3762
commit 6b65bf06a4

View File

@ -578,8 +578,9 @@ Zotero.Translate.prototype._generateSandbox = function() {
// set up selectItems handler
this._sandbox.Zotero.selectItems = function(options) { return me._selectItems(options) };
} else {
// use null URL to create sandbox
this._sandbox = new Components.utils.Sandbox("");
// use null URL to create sandbox. no idea why a blank string doesn't
// work on all installations, but this should fix things.
this._sandbox = new Components.utils.Sandbox("http://www.example.com/");
this._sandbox.Zotero = new Object();
this._sandbox.Zotero.Utilities = new Zotero.Utilities();