Skip to content

Commit

Permalink
fix mobile hide popup
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 16, 2022
1 parent 670d8e6 commit 6a466c9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
Binary file added assets/dircord-1280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/github-1280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gmail-1280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/reddit-1280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/chrome_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate",
"description": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.28",
"version": "0.0.28.1",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"commands": {
Expand Down
13 changes: 9 additions & 4 deletions src/contentScript/popupMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,15 @@ Promise.all([twpConfig.onReady(), getTabHostName()])
pageTranslator.onPageLanguageStateChange(_pageLanguageState => {
pageLanguageState = _pageLanguageState
if(_pageLanguageState==='translated') {
getElemById("menuSelectLanguage").style.display = "none"
getElemById("menu").style.display = "none"
getElemById("btnOriginal").style.color = null
getElemById("btnTranslate").style.color = "#2196F3"
try{

getElemById("menuSelectLanguage").style.display = "none"
getElemById("menu").style.display = "none"
getElemById("btnOriginal").style.color = null
getElemById("btnTranslate").style.color = "#2196F3"
}catch(e){
// ignore
}
}
})

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate",
"description": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.28",
"version": "0.0.28.1",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"browser_specific_settings": {
Expand Down

0 comments on commit 6a466c9

Please sign in to comment.