Comecei a desenvolver um app com o electron e tive a nescessidade de fazer um span animado e usei o seguinte código
window.setInterval('spanmod()', 2000);
function spanmod () {
document.getElementById("spanmodif").textContent = "_"
window.setTimeout('spanmod2()', 1000)
}
function spanmod2 () {
document.getElementById("spanmodif").textContent = " "
}
Fiz e testei usando o chrome, mas quando eu coloco no electron aparece a seguinte mensagem
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
(anonymous function)
Fiz alguns testes e parece ser alguma coisa relacionada ao setInterval, nunca tive esse tipo de problema e também nunca tinha utilizado o electron. Poderiam me ajudar por favor?