Skip to content

Commit

Permalink
check boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Jan 22, 2024
1 parent 16ba328 commit b2d39e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion playground/nextjs/pages/canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function Home() {
<main>
<h1>Canvas</h1>

<canvas ref={ref} style={{ width: '50%', height: '50%' }}></canvas>
<canvas ref={ref} style={{ width: '200px', height: '200px', display: 'block' }}></canvas>
</main>
</>
)
Expand Down
6 changes: 3 additions & 3 deletions playground/nextjs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1756,9 +1756,9 @@ [email protected]:
source-map-js "^1.0.2"

posthog-js@^1.88.1:
version "1.88.1"
resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.88.1.tgz#ab81f21ec158a9c57be0e696744a9c9f6967ba3b"
integrity sha512-+8kFFU5KIcFSm8zB3tX8l0GSPyq/OtMtdrS9dYpMJk6nsEwXvOjkwFEpSrYzL5eGEpTPdbM65M52HvMqqsjpXw==
version "1.100.0"
resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.100.0.tgz#687b9a6e4ed226aa6572f4040b418ea0c8b3d353"
integrity sha512-r2XZEiHQ9mBK7D1G9k57I8uYZ2kZTAJ0OCX6K/OOdCWN8jKPhw3h5F9No5weilP6eVAn+hrsy7NvPV7SCX7gMg==
dependencies:
fflate "^0.4.1"

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export class SessionRecording {
}
}

if (!_isNull(this._recordCanvas) && !_isNull(this._canvasFps) && !_isNull(this._canvasQuality)) {
if (this._recordCanvas && !_isNull(this._canvasFps) && !_isNull(this._canvasQuality)) {
sessionRecordingOptions.recordCanvas = true
sessionRecordingOptions.sampling = { canvas: this._canvasFps }
sessionRecordingOptions.dataURLOptions = { type: 'image/webp', quality: this._canvasQuality }
Expand Down

0 comments on commit b2d39e7

Please sign in to comment.