support brave browser, Close #31

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-10-26 12:39:09 +08:00
parent c0c53bad3a
commit 1540e36404
6 changed files with 30 additions and 1 deletions
+8
View File
@@ -13,11 +13,13 @@ const (
fireFoxProfilePath = "/home/*/.mozilla/firefox/*.default-release/"
chromeProfilePath = "/home/*/.config/google-chrome/*/"
edgeProfilePath = "/home/*/.config/microsoft-edge*/*/"
braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/"
)
const (
chromeStorageName = "Chrome Safe Storage"
edgeStorageName = "Chromium Safe Storage"
braveStorageName = "Brave Safe Storage"
)
var (
@@ -45,6 +47,12 @@ var (
Storage: edgeStorageName,
New: NewChromium,
},
"brave": {
ProfilePath: braveProfilePath,
Name: braveName,
Storage: braveStorageName,
New: NewChromium,
},
}
)