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/bookmark.js

    r23 r25  
    33        this.path = path
    44        if( display_name == null ){
    5             this.display_name = path.substr(0, max_display_name_length)
     5            this.display_name = path.substr(-max_display_name_length )
    66        }
    77        else{
    8             this.display_name = display_name
     8            this.display_name = display_name.substr( -max_display_name_length )
    99        }
    1010    }
    11 
    12     display_name() {
    13         return this.display_name
    14     }
    1511}
Note: See TracChangeset for help on using the changeset viewer.