From 9b7984ef2661912a4da9a4b17c8b6964ef61830f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Apr 2019 03:34:45 -0400 Subject: [PATCH] Run JS: Fix window title and stuck result pane after error --- chrome/content/zotero/runJS.html | 1 + chrome/content/zotero/runJS.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/runJS.html b/chrome/content/zotero/runJS.html index 5b2a9bce52..cae1491507 100644 --- a/chrome/content/zotero/runJS.html +++ b/chrome/content/zotero/runJS.html @@ -1,5 +1,6 @@ + Run JavaScript diff --git a/chrome/content/zotero/runJS.js b/chrome/content/zotero/runJS.js index 77d2853594..04eb32a817 100644 --- a/chrome/content/zotero/runJS.js +++ b/chrome/content/zotero/runJS.js @@ -25,7 +25,7 @@ async function run() { } catch (e) { resultTextbox.classList.add('error'); - resultTextbox.value = e; + resultTextbox.textContent = e; return; } resultTextbox.classList.remove('error');