function checkForLegacySessionStorageData(){
if(sessionStorage.getItem('digital_forms') || sessionStorage.getItem('digital_form_progress')){
// has legacy data that should be migrated
var offlineForms = JSON.parse(sessionStorage.getItem('digital_forms'));
var autoFills = JSON.parse(sessionStorage.getItem('digital_form_progress'));
var ui = $('<div class="migrate-legacy-session-data"><div><h1>Legacy Session Data Found</h1><p>We found the following items that should be migrated to the new browser API.</p><ul class="offlineForms"></ul><ul class="autoFills"></ul><p></p></div></div>');
for(let i=0;i<offlineForms.length;i++){
let item = $('<li>' + offlineForms[i]. + '<button>Preview Data in Form</button></li>');
ui.find('ul.offlineForms').append(item);
}
$('body').append(ui);
} else {
return false;
}
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.