source: branches/testa/js/bookmark.js @ 35

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

use localstorage to store/restore settings

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