feat: add yandex browser for windows, Close #90

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2021-12-09 15:53:47 +08:00
parent a9f36d6524
commit c92e067ccc
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ const (
operaGXName = "OperaGX"
vivaldiName = "Vivaldi"
coccocName = "CocCoc"
yandexName = "Yandex"
)
type Browser interface {
+8
View File
@@ -38,6 +38,8 @@ const (
vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State"
coccocProfilePath = "/AppData/Local/CocCoc/Browser/User Data/Default/"
coccocKeyPath = "/AppData/Local/CocCoc/Browser/Local State"
yandexProfilePath = "/AppData/Local/Yandex/YandexBrowser/User Data/Default"
yandexKeyPath = "/AppData/Local/Yandex/YandexBrowser/Local State"
)
var (
@@ -137,6 +139,12 @@ var (
Name: coccocName,
New: NewChromium,
},
"yandex": {
ProfilePath: os.Getenv("USERPROFILE") + yandexProfilePath,
KeyPath: os.Getenv("USERPROFILE") + yandexKeyPath,
Name: yandexName,
New: NewChromium,
},
}
)