Compare commits
2 Commits
a5616ade77
...
b561ca87c8
Author | SHA1 | Date | |
---|---|---|---|
b561ca87c8 | |||
|
6f449301ff |
13
main.go
13
main.go
@ -159,6 +159,19 @@ func saveChanges(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
for _, bookmark := range sessionData.Bookmarks {
|
||||
uri, err := url.Parse(bookmark.Link)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
if uri.Scheme == "" {
|
||||
uri.Scheme = "https"
|
||||
}
|
||||
bookmark.Link = uri.String()
|
||||
}
|
||||
|
||||
Reorder(sessionData.Bookmarks)
|
||||
if err := DeleteBookmarksBySessionID(session.ID); err != nil {
|
||||
fmt.Println(err)
|
||||
|
@ -3,9 +3,7 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url("/static/icons.ttf");
|
||||
src: local('Material Icons'),
|
||||
local('MaterialIcons-Regular'),
|
||||
url("/static/icons.ttf") format('truetype');
|
||||
src: url("/static/icons.ttf") format('truetype');
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
|
Loading…
Reference in New Issue
Block a user