Skip to content

Commit 4fc4393

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(ui): remove buggy getSessionDimensions and let player resize on its own
1 parent 9d9ca4f commit 4fc4393

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ui/src/components/Sessions/Player.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,6 @@ const currentSpeed = ref(1);
117117
const formatTime = (time: number) => new Date(time * 1000).toISOString().slice(time >= 3600 ? 11 : 14, 19);
118118
const changeFocusToPlayer = () => { playerWrapper.value?.focus(); };
119119
120-
const getSessionDimensions = () => {
121-
const dimensionsLine = logs?.split("\n")[1] ?? ""; // returns a string in the format of `[0.123, "r", "80x24"]`
122-
const dimensions = JSON.parse(dimensionsLine)[2];
123-
const [cols, rows] = dimensions.split("x");
124-
return { cols, rows };
125-
};
126-
127120
const getCurrentTime = () => {
128121
const time = player.value.getCurrentTime();
129122
currentTime.value = time;
@@ -168,7 +161,6 @@ const createPlayer = (startAt = 0) => {
168161
const playerOptions = {
169162
fit: "both",
170163
controls: false,
171-
...getSessionDimensions(),
172164
speed: currentSpeed.value,
173165
startAt,
174166
};

0 commit comments

Comments
 (0)