1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-31 07:51:21 +01:00
CanvasBlocker/test/settingsLoading.php
2017-12-12 21:56:22 +01:00

19 lines
333 B
PHP

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script>
try {
var c = document.createElement("canvas").getContext("2d");
}
catch (e){
console.log(e);
var c = false;
}
</script>
</head>
<body>
<script>
document.body.textContent = c? "context API not blocked": "context API blocked";
</script>
</body></html>