Move locales.xml retrieval into try
Fixes "Access to restricted URI denied" issue on Ubuntu
This commit is contained in:
parent
94bb513d92
commit
04fb50528c
1 changed files with 1 additions and 1 deletions
|
@ -126,8 +126,8 @@ Zotero.Cite.System.retrieveItem = function(item) {
|
|||
Zotero.Cite.System.retrieveLocale = function(lang) {
|
||||
var protHandler = Components.classes["@mozilla.org/network/protocol;1?name=chrome"]
|
||||
.createInstance(Components.interfaces.nsIProtocolHandler);
|
||||
var channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null));
|
||||
try {
|
||||
var channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null));
|
||||
var rawStream = channel.open();
|
||||
} catch(e) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue