Fix disabling Chrome notifications

This commit is contained in:
2Shirt 2019-11-16 17:56:00 -07:00
parent 4aca178f85
commit 8b25326b2d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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