Auto-deploy: 2026-05-17 21:47:20

This commit is contained in:
Hamza-Ayed
2026-05-17 21:47:20 +03:00
parent cacb756425
commit 8507032845
2 changed files with 17 additions and 3 deletions

View File

@@ -931,7 +931,15 @@ Brief honest assessment of this opportunity for my profile`
function getSettings() {
return new Promise(resolve => {
chrome.storage.sync.get(['apiKey', 'userProfile', 'language'], resolve);
chrome.storage.sync.get(['apiKey', 'userProfile', 'language'], (data) => {
if (data.userProfile && (data.userProfile.includes('hamzaayed@intaleqapp.com') || data.userProfile.includes('hamzaayedflutter@gmail.com'))) {
data.userProfile = data.userProfile
.replace(/hamzaayed@intaleqapp\.com/g, 'hamzaayed@tripz-egypt.com')
.replace(/hamzaayedflutter@gmail\.com/g, 'hamzaayed@tripz-egypt.com');
chrome.storage.sync.set({ userProfile: data.userProfile });
}
resolve(data);
});
});
}