Skip to content

Commit

Permalink
Fix extension not taking screenshot sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Jun 21, 2024
1 parent 4c36b51 commit 7b538fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extension/src/services/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,7 @@ export default class Binding {
const currentSettings = await this.settings.getAll();
this._speedChangeStep = currentSettings.speedChangeStep;
this.recordMedia = currentSettings.streamingRecordMedia;
this.takeScreenshot =
currentSettings.streamingTakeScreenshot &&
// @ts-ignore
(typeof this.video.webkitVideoDecodedByteCount !== 'number' || this.video.webkitVideoDecodedByteCount > 0);
this.takeScreenshot = currentSettings.streamingTakeScreenshot;
this.cleanScreenshot = currentSettings.streamingTakeScreenshot && currentSettings.streamingCleanScreenshot;
this.condensedPlaybackMinimumSkipIntervalMs = currentSettings.streamingCondensedPlaybackMinimumSkipIntervalMs;
this.fastForwardModePlaybackRate = currentSettings.fastForwardModePlaybackRate;
Expand Down

0 comments on commit 7b538fa

Please sign in to comment.