Skip to content

Commit

Permalink
Cleaning the cache of the VFP versions #364
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceFINET committed Mar 22, 2024
1 parent f44db47 commit fdb3c3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions force-app/main/default/pages/OrgCheck_App_VFP.page
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
</div>
</div>
<script>
/* Reset the cache of previous versions */
try {
Object.keys(localStorage)
.filter(e => e.startsWith('OrgCheck.'))
.forEach(e => localStorage.removeItem(e));
} catch (e) {
console.error('Error while resetting the cache of previous Org Check versions (prior to Lithium).')
}
/* Insert LWC app */
$Lightning.use('orgcheck:OrgCheck_App_Aura', function() {
$Lightning.createComponent('orgcheck:orgcheckApp',
{
Expand Down

0 comments on commit fdb3c3a

Please sign in to comment.