Fx60: += operator no longer works on nsIURI spec

This commit is contained in:
Dan Stillman 2018-02-24 19:19:28 -05:00
parent 186d2b0883
commit 15a7a812f6

View file

@ -644,14 +644,12 @@
// for read-only mode
var htmlFile = this.mode + (this.getAttribute('readonly') != 'true' ? "" : "view");
var ios = Components.classes["@mozilla.org/network/io-service;1"].
getService(Components.interfaces.nsIIOService);
var uri = ios.newURI("resource://zotero/tinymce/" + htmlFile + ".html", null, null);
// Pass directionality (LTR/RTL) and locale in URL
uri.spec += "?locale=" + encodeURIComponent(Zotero.locale)
var url = `resource://zotero/tinymce/${htmlFile}.html`
// Pass directionality (LTR/RTL) and locale in URL
+ "?locale=" + encodeURIComponent(Zotero.locale)
+ "&dir=" + Zotero.dir;
Components.utils.import("resource://gre/modules/Services.jsm");
var uri = Services.io.newURI(url, null, null);
Zotero.debug("Loading " + uri.spec);