Skip to content

Commit fdb3c3a

Browse files
committed
Cleaning the cache of the VFP versions #364
1 parent f44db47 commit fdb3c3a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

force-app/main/default/pages/OrgCheck_App_VFP.page

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
</div>
3838
</div>
3939
<script>
40+
/* Reset the cache of previous versions */
41+
try {
42+
Object.keys(localStorage)
43+
.filter(e => e.startsWith('OrgCheck.'))
44+
.forEach(e => localStorage.removeItem(e));
45+
} catch (e) {
46+
console.error('Error while resetting the cache of previous Org Check versions (prior to Lithium).')
47+
}
48+
/* Insert LWC app */
4049
$Lightning.use('orgcheck:OrgCheck_App_Aura', function() {
4150
$Lightning.createComponent('orgcheck:orgcheckApp',
4251
{

0 commit comments

Comments
 (0)