Spaces:
Sleeping
Sleeping
Download debug4.js from vedavyas1235/Animateit: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/vedavyas1235/Animateit/resolve/main/debug4.js
- Command line
-
hf download hf://spaces/vedavyas1235/Animateit/debug4.js
-
curl -L -o debug4.js https://huggingface.co/spaces/vedavyas1235/Animateit/resolve/main/debug4.js
570 Bytes
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const browser = await puppeteer.launch({ headless: 'new' }); | |
| const page = await browser.newPage(); | |
| const result = await page.evaluate(() => { | |
| try { | |
| const canvas = document.createElement('canvas'); | |
| canvas.width = 0; | |
| canvas.height = 0; | |
| const ctx = canvas.getContext('2d'); | |
| ctx.createRadialGradient(0, 0, 0, 0, 0, 0); | |
| return "SUCCESS"; | |
| } catch (e) { | |
| return "ERROR: " + e.message; | |
| } | |
| }); | |
| console.log("Result:", result); | |
| await browser.close(); | |
| })(); | |