Estoy tratando de crear una aplicación de cotización simple usando electron.js. Se llamará a un archivo javascript desde la página HTML de la aplicación, el archivo javascript llamará a la API api.quotable.io y la respuesta se mostrará como InnerHTML del archivo HTML.
Cuando estoy ejecutando la aplicación, recibo un mensaje de error:
[16368:1207/011918.044:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is¿Alguien puede ayudarme a entender por qué aparece el error y cómo puedo resolverlo?
Código fuente del archivo HTML, CSS y JS:
const got = require('got'); document.getElementById("quote").innerHTML = "ABCD"; got.get('https://api.quotable.io/random', { responsetype: 'json' }) .then(res => { const quote = JSON.parse(res.body).content; document.getElementById("quote").innerHTML = quote; }) .catch(err => { console.log(`Error: ${err.message}`); }); body { background-color: #222233; color: #AACCFF; font-family: 'Segoe UI', Tahoma, sans-serif; height: 150px; overflow: hidden; border-radius: 5px; } <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Quote Widget</title> </head> <body> <link rel="stylesheet" href="../css/styles.css"> <div id="quote"></div> </body> <script> require('../js/index.js'); </script> </html>[NÓTESE BIEN:
Enlace de vídeo: https://www.youtube.com/watch?v=qyAG4M9eH8o&list=PLC3y8-rFHvwiCJD3WrAFUrIMkGVDE0uqW&index=7]