Run JS: Fix window title and stuck result pane after error
This commit is contained in:
parent
679f22d089
commit
9b7984ef26
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Run JavaScript</title>
|
||||
<link href="chrome://zotero/skin/runJS.css" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -25,7 +25,7 @@ async function run() {
|
|||
}
|
||||
catch (e) {
|
||||
resultTextbox.classList.add('error');
|
||||
resultTextbox.value = e;
|
||||
resultTextbox.textContent = e;
|
||||
return;
|
||||
}
|
||||
resultTextbox.classList.remove('error');
|
||||
|
|
Loading…
Add table
Reference in a new issue