1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 20:16:33 +02:00

Improved dataUrlTest

Makes #211 reproducible.
This commit is contained in:
kkapsner 2018-07-21 00:17:00 +02:00
parent 5077c86859
commit 0ce446cf52
3 changed files with 134 additions and 4 deletions

View file

@ -7,6 +7,7 @@
<button>submit</button>
</form>
<script>
const origin = "iframe";
function draw(canvas){
"use strict";
@ -80,7 +81,7 @@
if (this.readyState === 4){
const status = this.status;
if (status === 200 || status === 304) {
console.log("Sending xhr successful:", this);
console.log("Sending xhr successful from", origin, ":", data);
}
else {
console.log("Sending xhr failed:", this);