plugins/localstorage/localstorage.js
function load() {
    Desktop.fetch('localStorage', 'getAll').then((storage) => {
        Meteor._localStorage.storage = storage;
    }).catch(() => {
        retries += 1;
        if (retries < 5) {
            load();
        } else {
            console.error('failed to load localStorage contents');
        }
    });
}
function load() {
    Desktop.fetch('localStorage', 'getAll').then((storage) => {
        Meteor._localStorage.storage = storage;
    }).catch(() => {
        retries += 1;
        if (retries < 5) {
            load();
        } else {
            console.error('failed to load localStorage contents');
        }
    });
}
function load ( ) { Desktop . fetch ( 'localStorage' , 'getAll' ) . then ( ( storage ) => { Meteor . _localStorage . storage = storage ; } ) . catch ( ( ) => { retries += 1 ; if ( retries < 5 ) { load ( ) ; } else { console . error ( 'failed to load localStorage contents' ) ; } } ) ; }
Fetches local storage data from the meteor-desktop-localstorage plugin.
Retries 5 times, then fails.
Fetches local storage data from the meteor - desktop - localstorage plugin . Retries 5 times then fails .