@glimt/record 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/record.cjs +3 -1
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +3 -1
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +3 -1
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.cjs
CHANGED
|
@@ -364,7 +364,9 @@ function toLowerCase(str) {
|
|
|
364
364
|
}
|
|
365
365
|
const ORIGINAL_ATTRIBUTE_NAME = "__rrweb_original__";
|
|
366
366
|
function is2DCanvasBlank(canvas) {
|
|
367
|
-
const ctx = canvas.getContext("2d"
|
|
367
|
+
const ctx = canvas.getContext("2d", {
|
|
368
|
+
willReadFrequently: true
|
|
369
|
+
});
|
|
368
370
|
if (!ctx) return true;
|
|
369
371
|
const chunkSize = 50;
|
|
370
372
|
for (let x2 = 0; x2 < canvas.width; x2 += chunkSize) {
|