Run JS: Fix window title and stuck result pane after error

This commit is contained in:
Dan Stillman 2019-04-16 03:34:45 -04:00
parent 679f22d089
commit 9b7984ef26
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
<html>
<head>
<title>Run JavaScript</title>
<link href="chrome://zotero/skin/runJS.css" rel="stylesheet"/>
</head>
<body>

View file

@ -25,7 +25,7 @@ async function run() {
}
catch (e) {
resultTextbox.classList.add('error');
resultTextbox.value = e;
resultTextbox.textContent = e;
return;
}
resultTextbox.classList.remove('error');