Answer the question
In order to leave comments, you need to log in
How to use paths in electron when you are packaging an application? Insert manually after unpacking?
The bottom line is, in index.html I write
<script>
const fs = require('fs')
let data = fs.readFileSync('data.txt')
document.getElementById('data').innerHTML = data;
require('./render.js')
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question