New answers tagged

0 votes

accessing static resource in apex

Just do the following (omit the zip file extension in the resourceName): PageReference.forResource('ZipFile', 'Resource.txt').getContent(); Note that this doesn't work in unit tests as this requires a ...
Semmel's user avatar
  • 2,310
0 votes

LWC component throws error during loadScript for static resource - Lightning Web Security: Cannot access fullscreenEnabled

I am seeing a different issue when I try running this code. I get through the resource loading but am stopped at this.chart = new window.Charts.RadarChart. I get an error stating that window.Charts....
mvogelgesang's user avatar
1 vote
Accepted

LWC component throws error during loadScript for static resource - Lightning Web Security: Cannot access fullscreenEnabled

This is a security feature, as outlined in the LWS Distortion Viewer. Basically, to make sure their customers are safe from phishing attacks, salesforce.com has blocked this feature entirely. Note ...
sfdcfox's user avatar
  • 487k

Top 50 recent answers are included