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() { function getSettings() {
return new Promise(resolve => { 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);
});
}); });
} }

View File

@@ -39,8 +39,14 @@ function loadSettings() {
document.getElementById('api-key-input').value = data.apiKey; document.getElementById('api-key-input').value = data.apiKey;
setKeyStatus('ok'); setKeyStatus('ok');
} }
document.getElementById('profile-textarea').value = let profile = data.userProfile || DEFAULT_PROFILE;
data.userProfile || DEFAULT_PROFILE; if (profile.includes('hamzaayed@intaleqapp.com') || profile.includes('hamzaayedflutter@gmail.com')) {
profile = profile
.replace(/hamzaayed@intaleqapp\.com/g, 'hamzaayed@tripz-egypt.com')
.replace(/hamzaayedflutter@gmail\.com/g, 'hamzaayed@tripz-egypt.com');
chrome.storage.sync.set({ userProfile: profile });
}
document.getElementById('profile-textarea').value = profile;
document.getElementById('lang-select').value = document.getElementById('lang-select').value =
data.language || 'auto'; data.language || 'auto';
}); });