Auto-deploy: 2026-05-17 21:47:20
This commit is contained in:
10
popup.js
10
popup.js
@@ -39,8 +39,14 @@ function loadSettings() {
|
||||
document.getElementById('api-key-input').value = data.apiKey;
|
||||
setKeyStatus('ok');
|
||||
}
|
||||
document.getElementById('profile-textarea').value =
|
||||
data.userProfile || DEFAULT_PROFILE;
|
||||
let 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 =
|
||||
data.language || 'auto';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user