mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 15:31:00 +00:00
Merge pull request #325 from dingedi/feature/auto-translate-url
run translation if text is in url
This commit is contained in:
commit
eb0df4d0df
1 changed files with 1 additions and 0 deletions
|
@ -419,6 +419,7 @@ function handleLangsResponse(self, response) {
|
|||
|
||||
if (defaultText) {
|
||||
self.inputText = decodeURI(defaultText)
|
||||
self.handleInput(new Event('none'))
|
||||
}
|
||||
} else {
|
||||
self.error = "Cannot load /languages";
|
||||
|
|
Loading…
Reference in a new issue