feat-dev: support firefox for windows and macos

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-01-16 22:31:51 +08:00
parent 88fe9c96db
commit 4d444891ab
17 changed files with 384 additions and 216 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ func IntToBool(a int) bool {
return true
}
func BookMarkType(a int64) string {
func BookmarkType(a int64) string {
switch a {
case 1:
return "url"
@@ -66,7 +66,7 @@ func WriteFile(filename string, data []byte) error {
return err
}
func FormatFileName(dir, browser, filename, format string) string {
func FormatFilename(dir, browser, filename, format string) string {
r := strings.Replace(strings.TrimSpace(strings.ToLower(browser)), " ", "_", -1)
p := path.Join(dir, fmt.Sprintf("%s_%s.%s", r, filename, format))
return p