I'm trying to create a simple quote app using electron.js. A javascript file will be called from the HTML page of the app, the javascript file will call api.quotable.io API, and the response will be displayed as InnerHTML of the HTML file.
When I'm running the app, I'm getting an error message:
[16368:1207/011918.044:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
Can anyone please help me to understand, why the error is coming and how can I resolve the error?
Source Code of HTML, CSS and JS file:
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.B.:
Link of video: https://www.youtube.com/watch?v=qyAG4M9eH8o&list=PLC3y8-rFHvwiCJD3WrAFUrIMkGVDE0uqW&index=7]