discord-sandboxed/index.html

37 lines
830 B
HTML
Raw Normal View History

2019-10-07 05:06:55 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
2019-10-07 06:54:38 +00:00
<link type="text/css" rel="stylesheet" href="./css/style.css">
2019-10-07 05:06:55 +00:00
</head>
<body>
<div id="root"></div>
<div id="error"></div>
<script>
const { ipcRenderer } = require('electron')
// TODO: remove into react component
ipcRenderer.on('error', function(event, errObj){
showError(errObj)
})
// Generic show error in error div function
function showError(errObj) {
if (errObj.hasOwnProperty("error")) {
console.log(errObj.error)
document.getElementById("error").innerHTML = errObj.error
return true
}
return false
}
</script>
<script>
import './src-react/App.jsx'
</script>
</body>
</html>