Skip to content

Commit 5c509a7

Browse files
authored
Fix #196 invalid tab handling
2 parents be5253c + 17d35a4 commit 5c509a7

File tree

4 files changed

+1
-34
lines changed

4 files changed

+1
-34
lines changed

codedrop.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,6 @@ function processFile(file) {
122122
if (!isMobile) cd.setSelection(0, 0);
123123

124124
cd.focus();
125-
126-
// change tab character
127-
if (cd.textContent.includes('\t')) {
128-
129-
cd.options.tab = '\t';
130-
131-
} else {
132-
133-
cd.options.tab = ' ';
134-
135-
}
136125

137126
cd.history = [{ html: cd.innerHTML, pos: cd.getSelection() }];
138127

filebrowser.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,17 +1359,6 @@ async function loadFileInHTML(fileEl, fileSha) {
13591359
}
13601360

13611361
}
1362-
1363-
// change tab character
1364-
if (cd.textContent.includes('\t')) {
1365-
1366-
cd.options.tab = '\t';
1367-
1368-
} else {
1369-
1370-
cd.options.tab = ' ';
1371-
1372-
}
13731362

13741363
// if on desktop and file is modified
13751364
if (!isMobile && modifiedFiles[fileSha]) {

live-view/live-view.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -316,17 +316,6 @@ async function setupLiveView() {
316316

317317
}
318318

319-
// change tab character
320-
if (cd.textContent.includes('\t')) {
321-
322-
cd.options.tab = '\t';
323-
324-
} else {
325-
326-
cd.options.tab = ' ';
327-
328-
}
329-
330319
// set scroll pos in codeit
331320
cd.scrollTo(selectedFile.scrollPos[0], selectedFile.scrollPos[1]);
332321

worker/client-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
// update worker name when updating worker
7-
const WORKER_NAME = 'codeit-worker-v554';
7+
const WORKER_NAME = 'codeit-worker-v555';
88

99

1010
// internal paths

0 commit comments

Comments
 (0)