Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 3c2a202

Browse files
committed
Show toolbar on txt
1 parent 613628e commit 3c2a202

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/firetext.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,8 +1351,7 @@ function processActions(eventAttribute, target, event) {
13511351
formatDoc('formatBlock', styleSelect.value);
13521352
} else if (calledFunction == 'hideToolbar') {
13531353
if (deviceType != 'desktop' && !document.getElementById('edit-bar').contains(document.activeElement)) {
1354-
if (document.getElementById('currentFileType').textContent != '.txt' &&
1355-
document.getElementById('currentFileType').textContent != '.odt' &&
1354+
if (document.getElementById('currentFileType').textContent != '.odt' &&
13561355
(target.id === 'editor' || target.id === 'hide-keyboard-button')) {
13571356
document.querySelector('.edit-header').classList.remove('hidden');
13581357
document.getElementById('edit-bar').classList.add('hidden');
@@ -1362,8 +1361,7 @@ function processActions(eventAttribute, target, event) {
13621361
}
13631362
} else if (calledFunction == 'showToolbar') {
13641363
if (deviceType != 'desktop') {
1365-
if (document.getElementById('currentFileType').textContent != '.txt' &&
1366-
document.getElementById('currentFileType').textContent != '.odt' &&
1364+
if (document.getElementById('currentFileType').textContent != '.odt' &&
13671365
(target.id === 'editor' || target.id === 'hide-keyboard-button')) {
13681366
document.querySelector('.edit-header').classList.add('hidden');
13691367
document.getElementById('edit-bar').classList.remove('hidden');

0 commit comments

Comments
 (0)