function _recordType(itemId) {
    let bms  = PlacesUtils.bookmarks;
    let type = bms.getItemType(itemId);

    switch (type) {
      case bms.TYPE_FOLDER:
        if (PlacesUtils.annotations
                       .itemHasAnnotation(itemId, PlacesUtils.LMANNO_FEEDURI)) {
          return "livemark";
        }
        return "folder";

      case bms.TYPE_BOOKMARK:
        let bmkUri = bms.getBookmarkURI(itemId).spec;
        if (bmkUri.indexOf("place:") == 0) {
          return "query";
        }
        return "bookmark";

      case bms.TYPE_SEPARATOR:
        return "separator";

      default:
        return null;
    }
  }
// a granular type for comparison.
a granular type for comparison.
a granular type for comparison .
function _recordType(itemId) {
    let bms  = PlacesUtils.bookmarks;
    let type = bms.getItemType(itemId);
    switch (type) {
      case bms.TYPE_FOLDER:
        if (PlacesUtils.annotations
                       .itemHasAnnotation(itemId, PlacesUtils.LMANNO_FEEDURI)) {
          return "livemark";
        }
        return "folder";
      case bms.TYPE_BOOKMARK:
        let bmkUri = bms.getBookmarkURI(itemId).spec;
        if (bmkUri.indexOf("place:") == 0) {
          return "query";
        }
        return "bookmark";
      case bms.TYPE_SEPARATOR:
        return "separator";
      default:
        return null;
    }
  }
function _recordType ( itemId ) { let bms = PlacesUtils . bookmarks ; let type = bms . getItemType ( itemId ) ; switch ( type ) { case bms . TYPE_FOLDER : if ( PlacesUtils . annotations . itemHasAnnotation ( itemId , PlacesUtils . LMANNO_FEEDURI ) ) { return "livemark" ; } return "folder" ; case bms . TYPE_BOOKMARK : let bmkUri = bms . getBookmarkURI ( itemId ) . spec ; if ( bmkUri . indexOf ( "place:" ) == 0 ) { return "query" ; } return "bookmark" ; case bms . TYPE_SEPARATOR : return "separator" ; default : return null ; } }
a granular type for comparison.
a granular type for comparison .