Compare commits

..

No commits in common. "b561ca87c885a55b6a76e85c1336848ffb6554d8" and "a5616ade772f40117f0518451c8ffdf374e73ab4" have entirely different histories.

2 changed files with 3 additions and 14 deletions

13
main.go
View File

@ -159,19 +159,6 @@ 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)

View File

@ -3,7 +3,9 @@
font-style: normal;
font-weight: 400;
src: url("/static/icons.ttf");
src: url("/static/icons.ttf") format('truetype');
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url("/static/icons.ttf") format('truetype');
}
.material-icons {