options.js
// Restores select box state to saved value from localStorage.
Restores select box state to saved value from localStorage.
Restores select box state to saved value from localStorage .
function restore_options() {
  var no_tabs = localStorage["no_tabs"];
  var no_wins = localStorage["no_wins"];
  if (!no_tabs) {
	localStorage["no_tabs"] = 3;
    document.getElementById("no_tabs").value = 3;
	return;
  }
  if (!no_wins){
  	localStorage["no_wins"] = 3;
  	document.getElementById("no_wins").value = 3;
  	return;
  }
  document.getElementById("no_tabs").value = no_tabs;
  document.getElementById("no_wins").value = no_wins;
}
function restore_options ( ) { var no_tabs = localStorage [ "no_tabs" ] ; var no_wins = localStorage [ "no_wins" ] ; if ( ! no_tabs ) { localStorage [ "no_tabs" ] = 3 ; document . getElementById ( "no_tabs" ) . value = 3 ; return ; } if ( ! no_wins ) { localStorage [ "no_wins" ] = 3 ; document . getElementById ( "no_wins" ) . value = 3 ; return ; } document . getElementById ( "no_tabs" ) . value = no_tabs ; document . getElementById ( "no_wins" ) . value = no_wins ; }
Restores select box state to saved value from localStorage.
Restores select box state to saved value from localStorage .