mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor: format code with interface, Close #22
This commit is contained in:
@@ -24,17 +24,17 @@ var (
|
||||
"firefox": {
|
||||
ProfilePath: fireFoxProfilePath,
|
||||
Name: firefoxName,
|
||||
New: decryptFirefox,
|
||||
New: NewFirefox,
|
||||
},
|
||||
"chrome": {
|
||||
ProfilePath: chromeProfilePath,
|
||||
Name: chromeName,
|
||||
New: decryptChromium,
|
||||
New: NewChromium,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func (c *chromium) InitSecretKey() error {
|
||||
func (c *Chromium) InitSecretKey() error {
|
||||
//what is d-bus @https://dbus.freedesktop.org/
|
||||
var chromeSecret []byte
|
||||
conn, err := dbus.SessionBus()
|
||||
@@ -50,9 +50,7 @@ func (c *chromium) InitSecretKey() error {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
if err = session.Close(); err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
session.Close()
|
||||
}()
|
||||
collections, err := svc.GetAllCollections()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user