javascript/options.js
/**
 * Saves the value of the checkbox into local storage.
 */
Saves the value of the checkbox into local storage.
Saves the value of the checkbox into local storage .
function save() {
    localStorage.autoRedirect = $('autoRedirect').checked;
    localStorage.usageOptOut = $('usageOptOut').checked;
    chrome.extension.getBackgroundPage().parseLocalStorage();
    $('autoRedirectStatus').innerHTML = 'Saved.';
    $('autoRedirectStatus').style.display = 'block';
    setTimeout(function(){ $('autoRedirectStatus').style.display = 'none' }, 1500);
}
function save ( ) { localStorage . autoRedirect = $ ( 'autoRedirect' ) . checked ; localStorage . usageOptOut = $ ( 'usageOptOut' ) . checked ; chrome . extension . getBackgroundPage ( ) . parseLocalStorage ( ) ; $ ( 'autoRedirectStatus' ) . innerHTML = 'Saved.' ; $ ( 'autoRedirectStatus' ) . style . display = 'block' ; setTimeout ( function ( ) { $ ( 'autoRedirectStatus' ) . style . display = 'none' } , 1500 ) ; }
Saves the value of the checkbox into local storage.
Saves the value of the checkbox into local storage .
// Make sure the background page sees the changes!