From b835970eada1de51f66ae8be12570cf7e00720bf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Feb 2018 19:19:28 -0500 Subject: [PATCH] Fx60 compatibility: += operator no longer works on nsIURI spec --- chrome/content/zotero/bindings/styled-textbox.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index dcb35ae1e..a5f8fcf44 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -652,14 +652,11 @@ // 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; - + var uri = Services.io.newURI(url, null, null); Zotero.debug("Loading " + uri.spec);