1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-04 12:27:51 +02:00
CanvasBlocker/test/settingsLoading.php

19 lines
333 B
PHP
Raw Normal View History

2017-12-12 21:56:22 +01:00
<!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>