source: branches/testa-single-bookmark/js/bookmark.js @ 56

Last change on this file since 56 was 25, checked in by anonymous, 6 years ago

use localstorage to store/restore settings

File size: 294 bytes
Line 
1class Bookmark {
2    constructor( path , max_display_name_length, display_name = null ){
3        this.path = path
4        if( display_name == null ){
5            this.display_name = path.substr(-max_display_name_length )
6        }
7        else{
8            this.display_name = display_name.substr( -max_display_name_length )
9        }
10    }
11}
Note: See TracBrowser for help on using the repository browser.