
var init = function(){
  var blackTable = document.getElementById("blacklist_table");
  var whiteTable = document.getElementById("whitelist_table");

  for (var i = 0; i < localStorage.length; i++){
    var key = localStorage.key(i);
    var value = localStorage.getItem(key);
    var item = new Option(key);
    if(value === "black"){
      blackTable.add(item);
    }
    else if(value === "white"){
      whiteTable.add(item);
    }
  }
}

init();
