mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Added test for settings loading timing
This commit is contained in:
parent
3e214ed967
commit
bd48d1f39a
2 changed files with 20 additions and 0 deletions
19
test/settingsLoading.php
Normal file
19
test/settingsLoading.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue