Use a different profile for mobile browser

This commit is contained in:
augustin64
2024-04-12 09:31:50 +02:00
parent 3eb193eca3
commit 449d2da410
3 changed files with 8 additions and 5 deletions

View File

@ -12,8 +12,12 @@ from modules.Tools.logger import debug
from modules.Tools.tools import *
def init_profile(mail):
chrome_profile_dir = "/app/MsRewards-Reborn/user_data/profile/"+mail
def init_profile(mail, mobile=False):
if not mobile:
chrome_profile_dir = "/app/MsRewards-Reborn/user_data/profile/"+mail
else:
chrome_profile_dir = "/app/MsRewards-Reborn/user_data/profile/mobile-"+mail
os.makedirs(chrome_profile_dir, exist_ok=True)
preferences_file = os.path.join(chrome_profile_dir, "Default", "Preferences")