Fix disabling Chrome notifications
This commit is contained in:
parent
4aca178f85
commit
8b25326b2d
1 changed files with 4 additions and 1 deletions
|
|
@ -171,8 +171,11 @@ def disable_chrome_notifications():
|
|||
sleep(1)
|
||||
kill_process('chrome.exe')
|
||||
|
||||
# Update browser_data
|
||||
scan_for_browsers(silent=True, skip_ie=True)
|
||||
|
||||
for profile in browser_data.get('Google Chrome', {}).get('profiles', []):
|
||||
pref_file = pathlib.Path(f'{profile["user_data_path"]}/Preferences')
|
||||
pref_file = pathlib.Path(f'{profile["path"]}/Preferences')
|
||||
if pref_file.exists():
|
||||
pref_data = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue