detect-canvas-block
v1.0.0
Published
Detect if data extraction from HTML canvas elements is blocked.
Downloads
2
Readme
detect-canvas-block
Detect if data extraction from HTML canvas elements is blocked.
Usage when included with a <script>
tag
if (detectCanvasBlock()) {
// canvas data extraction is allowed
} else {
// canvas data extraction is blocked
}
Usage when included as a module
const detectCanvasBlock = require('detect-canvas-block');
if (detectCanvasBlock()) {
// canvas data extraction is allowed
} else {
// canvas data extraction is blocked
}