@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.js
CHANGED
|
@@ -362,7 +362,9 @@ function toLowerCase(str) {
|
|
|
362
362
|
}
|
|
363
363
|
const ORIGINAL_ATTRIBUTE_NAME = "__rrweb_original__";
|
|
364
364
|
function is2DCanvasBlank(canvas) {
|
|
365
|
-
const ctx = canvas.getContext("2d"
|
|
365
|
+
const ctx = canvas.getContext("2d", {
|
|
366
|
+
willReadFrequently: true
|
|
367
|
+
});
|
|
366
368
|
if (!ctx) return true;
|
|
367
369
|
const chunkSize = 50;
|
|
368
370
|
for (let x2 = 0; x2 < canvas.width; x2 += chunkSize) {
|