Skip to content

Commit

Permalink
heads up condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patchworksapp committed May 19, 2022
1 parent 0f8f94a commit 454563f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions player.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,10 @@ export class Player {
next._view = constants.view.EDIT;
bailEarly = true;
if (
next.actualScreenshot.png.height !== next.tab.height ||
next.actualScreenshot.png.width !== next.tab.width
next.actualScreenshot.png.height !==
next.expectedScreenshot.png.height ||
next.actualScreenshot.png.width !==
next.expectedScreenshot.png.width
) {
await brimstone.window.alert(
'Heads up, the expected viewport size does not match the actual viewport size.\n\nThis normally should not occur. Your recording may be corrupted.'
Expand Down

0 comments on commit 454563f

Please sign in to comment.