mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-17 17:14:46 +02:00
Use a different profile for mobile browser
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user