Ignore:
Timestamp:
Aug 21, 2019 7:44:47 PM (6 years ago)
Author:
anonymous
Message:

use localstorage to store/restore settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testa/js/bookmarkmgr.js

    r23 r25  
    66    }
    77
    8     add( path , display_name ){
     8    add( path , display_name = null){
    99        let result = this.paths.indexOf( path )
    1010        if( result < 0 ){
     
    2121            delete this.paths[ result ]
    2222        }
     23    }
     24
     25    get( path ){
     26        let ret = null
     27        let result = this.paths.indexOf( path )
     28        if( result >= 0 ){
     29            ret = this.items[ path ]
     30        }
     31        return ret
    2332    }
    2433
     
    4655        return path.substr( -this.max_display_name_length )
    4756    }
     57
     58    get_items() {
     59        return this.items
     60    }
     61
     62    max_display_name_length(){
     63        return this.max_display_name_length
     64    }
    4865}
Note: See TracChangeset for help on using the changeset viewer.