Compare commits
No commits in common. "b561ca87c885a55b6a76e85c1336848ffb6554d8" and "a5616ade772f40117f0518451c8ffdf374e73ab4" have entirely different histories.
b561ca87c8
...
a5616ade77
13
main.go
13
main.go
@ -159,19 +159,6 @@ func saveChanges(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
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)
|
Reorder(sessionData.Bookmarks)
|
||||||
if err := DeleteBookmarksBySessionID(session.ID); err != nil {
|
if err := DeleteBookmarksBySessionID(session.ID); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url("/static/icons.ttf");
|
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 {
|
.material-icons {
|
||||||
|
Loading…
Reference in New Issue
Block a user