all! Has anyone been able to integrate the fullcalendar component with electron?
I've managed to get it to show up in my electron-react project but the DOM throws an insulting:
Refused to apply inline style because it violates the following Content Security Policy
directive: "style-src 'self'". Either the 'unsafe-inline' keyword,
a hash ('sha256-2OTceqSQmkTg8dF4uXJnncUTPXrvR4eT2fCjRp5TAvg='), or a nonce ('nonce-...')
is required to enable inline execution.
from:
function injectStylesInParent(parentEl, css) {
const style = document.createElement('style');
const nonce = getNonceValue();
if (nonce) {
style.nonce = nonce;
}
style.innerText = css;
// ____ THIS LINE:______________
parentEl.appendChild(style);
//
return style;
}
in my fullcalendar/core/internal-common.js.
Commenting it out altogether broke the plugin's styling and some functionality and i've read about the Console's suggestions but they seem kind of risky to me.
Any line of thougth will be much appreciated. Thank you!
Via Active questions tagged javascript - Stack Overflow https://ift.tt/noNS1P7
Comments
Post a Comment