Prevent accidental h1 misidentification

cpsdqs/unified-input
cpsdqs 7 years ago
parent e3944df189
commit 8f0d6c7873
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 2
      jssrc/term_screen.js
  2. 2
      pages/term.php

@ -1228,7 +1228,7 @@ window.TermScreen = class TermScreen {
*/
loadLabels (str) {
let pieces = str.split('\x01')
qs('h1').textContent = pieces[0]
qs('#screen-title').textContent = pieces[0]
$('#action-buttons button').forEach((button, i) => {
let label = pieces[i + 1].trim()
// if empty string, use the "dim" effect and put nbsp instead to

@ -40,7 +40,7 @@
</div>
</div>
<h1><!-- Screen title gets loaded here by JS --></h1>
<h1 id="screen-title"><!-- Screen title is loaded here by JS --></h1>
<div id="term-wrap">
<div id="screen">

Loading…
Cancel
Save